Deploy nginx as reverse proxy image to docker hub by BHyeonKim #19
This file contains hidden or 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: Deploy nginx | |
| run-name: Deploy nginx as reverse proxy image to docker hub by ${{github.actor}} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build image | |
| run: | | |
| docker build -t ${{secrets.DOCKER_USERNAME}}/reverseproxy:latest . | |
| - name: Login to Docker Hub | |
| uses: docker/[email protected] | |
| with: | |
| username: ${{secrets.DOCKER_USERNAME}} | |
| password: ${{secrets.DOCKER_TOKEN}} | |
| - name: Push image to Docker hub | |
| run: | | |
| docker push ${{secrets.DOCKER_USERNAME}}/reverseproxy:latest |