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

34 lines
966 B
YAML

name: package
on:
push:
tags:
- "v*.*.*"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Docker
uses: https://github/papodaca/install-docker-action@v1
- name: Set up QEMU
uses: https://github/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 }}