Skip to content

initial-deploy-expiration #14

initial-deploy-expiration

initial-deploy-expiration #14

name: initial-deploy-expiration
on:
push:
# watch for push event in main branch
branches:
- main
# watch for changes in specific file
paths:
- "trigger-initial-deploy.txt"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# build an image
- run: cd expiration && docker build -t thasup/expiration .
# login on docker hub
- run: docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# push an image to docker hub
- run: docker push thasup/expiration