2024-12-02 12:59:37 +01:00
|
|
|
name: Release CI action
|
|
|
|
run-name: ${{ gitea.repository }} release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2024-12-02 11:04:20 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-12-02 12:59:37 +01:00
|
|
|
build-and-push-container:
|
2024-12-02 11:04:20 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2024-12-02 12:59:37 +01:00
|
|
|
- name: checkout
|
2024-12-02 11:04:20 +01:00
|
|
|
uses: actions/checkout@v4
|
2024-12-02 12:59:37 +01:00
|
|
|
- name: build container
|
|
|
|
run: docker build -t git.gtz.dk/${{ gitea.repository }}:latest .
|
|
|
|
- name: login
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
2024-12-02 13:18:55 +01:00
|
|
|
# NOTE: See https://gitea.com/gitea/docs/pulls/77/files
|
2024-12-02 12:59:37 +01:00
|
|
|
registry: git.gtz.dk
|
|
|
|
username: ${{ gitea.actor }}
|
2024-12-02 13:18:55 +01:00
|
|
|
password: ${{ secrets.PACKAGE_TOKEN }}
|
2024-12-02 12:59:37 +01:00
|
|
|
- name: push container
|
|
|
|
run: docker push git.gtz.dk/${{ gitea.repository }}:latest
|