Add .forgejo/workflows/docker-image.yaml
Some checks failed
/ build (push) Successful in 44s
/ docker-image (push) Failing after 24s

This commit is contained in:
Aaron Fischer 2023-10-09 22:56:07 +02:00
parent f3695c04aa
commit 38c06228a2

View file

@ -0,0 +1,31 @@
on:
push:
branches:
- main
jobs:
docker-image:
runs-on: docker
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y git
- name: Checkout sourcecode
uses: actions/checkout@v3
- name: Set up Docker build environment
uses: docker/setup-buildx-action@v3
- name: Login to forgejo docker registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
- name: Build and push the docker image
uses: docker/build-push-action@v5
with:
push: true
tags: git.okoyono.de/okoyono-intern/okospaceapi:latest