Docker for Backend - Production Branch #114
Workflow file for this run
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 for Backend - Production Branch | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - 'calc-backend/**' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| environment: Speedrun CI | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: docker login | |
| env: | |
| DOCKER_USER: ${{ secrets.DOCKER_USER }} | |
| DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
| run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD | |
| - name: build the image | |
| run: docker build ./calc-backend --tag emeraldkeys/calc-visualizer-backend:latest | |
| - name: push to docker registry | |
| run: docker push emeraldkeys/calc-visualizer-backend:latest | |