okospaceapi/.forgejo/workflows/docker-image.yaml
Aaron Fischer 38c06228a2
Some checks failed
/ build (push) Successful in 44s
/ docker-image (push) Failing after 24s
Add .forgejo/workflows/docker-image.yaml
2023-10-09 22:56:07 +02:00

31 lines
No EOL
772 B
YAML

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