runner-docker/.forgejo/workflows/package.yml
2023-03-24 12:58:56 +01:00

32 lines
874 B
YAML

name: package
on:
push:
tags:
- "v*.*.*"
jobs:
docker:
runs-on: ci-docker
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: https://github.com/docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v2
- name: Login to Docker Registry
uses: https://github.com/docker/login-action@v2
with:
registry: git.itzyanick.de
username: ItzYanick
password: ${{ secrets.PACKAGE_TOKEN }}
- name: Build and push
uses: https://github.com/docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: git.itzyanick.de/ItzYanick/runner-docker:latest
build-args: |
CHECKOUT=${{ github.ref }}