[FIX] error on workflows #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TWTW Nginx Build | |
on: | |
push: | |
branches: | |
- 'master' | |
paths: | |
- '**.conf' | |
defaults: | |
run: | |
shell: bash | |
working-directory: ./nginx | |
jobs: | |
backend-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Nginx Build and Push | |
run: | | |
docker build -t ${{ secrets.DOCKER_USERNAME }}/twtw-nginx:latest . | |
docker push ${{ secrets.DOCKER_USERNAME }}/twtw-nginx:latest |