Skip to content

Update environment variable for MongoDB URI #21

Update environment variable for MongoDB URI

Update environment variable for MongoDB URI #21

Workflow file for this run

name: Publish to DockerHub
on:
push:
branches:
- main
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.23'
- name: Build Docker image
run: docker build -t morgenpruefung/mp-backend:latest .
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: docker push morgenpruefung/mp-backend:latest