48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
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
|
|
|
|
|