Build docker image workflow

This commit is contained in:
2023-11-09 00:00:47 +01:00
parent 26f2e14e85
commit 3d3e428755

View File

@ -0,0 +1,19 @@
name: Build AirSignal Docker image
on:
push:
branches: [master]
jobs:
build-docker:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Login to container registry
run: echo ${{ secrets.CONTAINER_REGISTRY_TOKEN }} | docker login -u ${{ secrets.CONTAINER_REGISTRY_USER }} http://gitea:3000
- name: Build Docker image
run: docker build . --file Dockerfile --tag christoph/airsignal:latest
- name: Push Docker image
run: docker push christoph/airsignal:latest