33 lines
924 B
YAML
33 lines
924 B
YAML
name: package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
container: catthehacker/ubuntu:act-latest
|
|
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 }}
|