Add dockerfile and build pipline for Gitea
release-container / build-and-push (push) Successful in 18s

This commit is contained in:
iamdoubz committed 2026-06-17 23:08:55 -05:00
1 parent db7c881deb
commit f0d8e4a167
3 files changed
+74

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
name: release-container
on:
push:
tags:
- 'v*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set image vars
run: |
echo "IMAGE=git.dou.bet/iamdoubz/drawit" >> $GITHUB_ENV
echo "TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV
- name: Login to registry
run: |
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.dou.bet -u "${{ secrets.REGISTRY_USER }}" --password-stdin
- name: Build image
run: |
docker build -t $IMAGE:$TAG -t $IMAGE:latest .
- name: Push image
run: |
docker push $IMAGE:$TAG
docker push $IMAGE:latest