ci: docker_tag=ext - add Gitea Actions workflow to build/push 4nk_certificator:ext
This commit is contained in:
parent
cabc273cb2
commit
6154fa25a3
47
.gitea/workflows/build-ext.yml
Normal file
47
.gitea/workflows/build-ext.yml
Normal file
@ -0,0 +1,47 @@
|
||||
name: build-ext
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- ext
|
||||
tags:
|
||||
- ext
|
||||
|
||||
jobs:
|
||||
docker-build-push:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.4nkweb.com
|
||||
username: ${{ secrets.USER }}
|
||||
password: ${{ secrets.TOKEN }}
|
||||
|
||||
- name: Derive Docker tag
|
||||
id: vars
|
||||
run: |
|
||||
DOCKER_TAG="ext"
|
||||
echo "tag=${DOCKER_TAG}" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
tags: |
|
||||
git.4nkweb.com/4nk/4nk_certificator:${{ steps.vars.outputs.tag }}
|
||||
cache-from: type=registry,ref=git.4nkweb.com/4nk/4nk_certificator:cache
|
||||
cache-to: type=registry,ref=git.4nkweb.com/4nk/4nk_certificator:cache,mode=max
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user