runner-docker/.forgejo/workflows/package.yml
2023-03-24 13:11:06 +01:00

29 lines
739 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: 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 }}