blog/.gitea/workflows/build.yml

24 lines
622 B
YAML
Raw Normal View History

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:
registry: git.gtz.dk
username: ${{ gitea.actor }}
2024-12-02 13:18:55 +01:00
password: ${{ secrets.GITEA_TOKEN }}
2024-12-02 12:59:37 +01:00
- name: push container
run: docker push git.gtz.dk/${{ gitea.repository }}:latest