Create docker-image.yml

This commit is contained in:
DariusKlein 2024-02-13 20:56:31 +01:00 committed by GitHub
parent a4d40b2ae4
commit deaaa3f995
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

21
.github/workflows/docker-image.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: Docker Image CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag portfolio-backend:latest
- name: Docker login
run: docker login docker.kleinwizard.nl -u Darius -p ${{ secrets.DOCKER_PASSWORD }}