feat: example post
This commit is contained in:
26
.gitea/workflows/build.yml
Normal file
26
.gitea/workflows/build.yml
Normal file
@ -0,0 +1,26 @@
|
||||
name: Release CI action
|
||||
run-name: ${{ gitea.repository }} release
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-push-container:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: qemu setup
|
||||
uses: docker/setup-qemu-action@v3
|
||||
- name: dockerx setup
|
||||
uses: docker/setup-buildx-action@v1
|
||||
- name: login
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
# NOTE: See https://gitea.com/gitea/docs/pulls/77/files
|
||||
registry: git.gtz.dk
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGE_TOKEN }}
|
||||
- name: build and push container
|
||||
run: docker buildx build --push --platform linux/amd64,linux/arm64 -t git.gtz.dk/${{ gitea.repository }}:latest .
|
Reference in New Issue
Block a user