ci: add container build
All checks were successful
Container build / container-build (push) Successful in 3m56s

This commit is contained in:
Job 2024-09-28 18:00:00 +02:00
parent 54865b536a
commit 0e51472973
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U

28
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,28 @@
name: Container build
on: [ push ]
jobs:
container-build:
runs-on: ubuntu-latest
if: gitea.ref == 'refs/heads/main'
steps:
- name: Clone repo
uses: actions/checkout@v4
- name: Set up BuildX
uses: docker/setup-buildx-action@v2
with:
endpoint: 'unix:///var/run/docker.sock'
- name: Login to Registry
uses: docker/login-action@v3
with:
registry: git.plabble.org
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Containerfile
push: true
tags: |
git.plabble.org/job79/dev:latest