okospaceapi/.forgejo/workflows/docker-image.yaml
Aaron Fischer 5593208d97
Some checks failed
/ docker-image (push) Failing after 45s
/ build (push) Successful in 45s
Update .forgejo/workflows/docker-image.yaml
2023-10-19 22:21:26 +02:00

36 lines
No EOL
1.1 KiB
YAML

on:
push:
branches:
- main
jobs:
docker-image:
runs-on: docker
steps:
- name: Install dependencies
run: |
echo deb http://deb.debian.org/debian bullseye-backports main | tee /etc/apt/sources.list.d/backports.list
apt-get update -qq
apt-get install -y git
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -qq -y -t bullseye-backports docker.io
- name: Checkout the sourcecode
uses: actions/checkout@v3
- name: Set up Docker build environment
uses: docker/setup-buildx-action@v3
driver-opts: |
image=moby/buildkit:v0.12.1-rootless
- name: Login to forgejo docker registry
uses: docker/login-action@v3
with:
registry: git.okoyono.de
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