Add Action
This commit is contained in:
parent
3fe8ea1f65
commit
a4c689ea88
1 changed files with 26 additions and 0 deletions
26
.forgejo/workflows/package.yml
Normal file
26
.forgejo/workflows/package.yml
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: package
|
||||||
|
on:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
name: docker
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Login to Docker Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: git.itzyanick.de
|
||||||
|
username: ItzYanick
|
||||||
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v4
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
push: true
|
||||||
|
tags: git.itzyanick.de/ItzYanick/runner-docker:latest
|
||||||
|
build-args: |
|
||||||
|
CHECKOUT=${{ github.ref }}
|
||||||
Loading…
Reference in a new issue