2024-12-01 09:55:16 +01:00
|
|
|
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: build container
|
2024-12-02 17:17:36 +01:00
|
|
|
run: docker build --platform linux/amd64,linux/arm64 -t git.gtz.dk/${{ gitea.repository }}:latest .
|
2024-12-01 09:55:16 +01:00
|
|
|
- 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: push container
|
|
|
|
run: docker push git.gtz.dk/${{ gitea.repository }}:latest
|