blog/.gitea/workflows/build.yml
Asger Gitz-Johansen 0ae9d04c26
Some checks failed
Release CI action / build-and-push-container (push) Failing after 1m55s
wip ci
2024-12-02 13:13:14 +01:00

24 lines
619 B
YAML

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
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 }}
password: ${{ secrets.CI_TOKEN }}
- name: push container
run: docker push git.gtz.dk/${{ gitea.repository }}:latest