Update docker-image.yml ( final fix, hopefully ) #7
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: Docker Image CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-push: | |
| runs-on: ubuntu-latest | |
| env: | |
| AWS1: ${{ secrets.AWS1 }} | |
| AWS2: ${{ secrets.AWS2 }} | |
| steps: | |
| - name: Check Out Repo | |
| uses: actions/checkout@v4 | |
| - name: Log in to Docker Hub | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USERNAME }} | |
| password: ${{ secrets.DOCKER_PASSWORD }} | |
| - name: Build and push Docker images | |
| uses: docker/[email protected] | |
| with: | |
| context: . | |
| file: ./container/Dockerfile | |
| push: true | |
| tags: unlux/transcoding:latest | |
| - name: Verify Pushed Image | |
| run: docker pull unlux/transcoding:latest |