This commit is contained in:
parent
3b4d483c4b
commit
4e9178be08
1 changed files with 42 additions and 0 deletions
42
.forgejo/workflows/docker.yml
Normal file
42
.forgejo/workflows/docker.yml
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
docker:
|
||||||
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
image: ubuntu:latest
|
||||||
|
steps:
|
||||||
|
- name: Setup QEMU
|
||||||
|
uses: https://code.forgejo.org/docker/setup-qemu-action@v3
|
||||||
|
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: https://code.forgejo.org/docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Docker Metadata
|
||||||
|
id: meta
|
||||||
|
uses: https://code.forgejo.org/docker/metadata-action@v5
|
||||||
|
with:
|
||||||
|
images: gnarwhal/motto
|
||||||
|
tags: |
|
||||||
|
type=semver,pattern={{version}}
|
||||||
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{major}}
|
||||||
|
|
||||||
|
- name: Login to package registry
|
||||||
|
uses: https://code.forgejo.org/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registery: forge.monodon.me
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ github.token }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: https://code.forgejo.org/docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
Reference in a new issue