Skip to content

Docker for Backend - Production Branch #114

Docker for Backend - Production Branch

Docker for Backend - Production Branch #114

Workflow file for this run

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