Add Forgejo workflow
Some checks failed
/ build (push) Failing after 8s

This commit is contained in:
Stefan Bethke 2024-07-30 18:57:12 +02:00
parent d971268d74
commit b9893e76f3
2 changed files with 29 additions and 1 deletions

View file

@ -0,0 +1,28 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/metadata-action@v5
id: metadata
with:
images: git.hamburg.ccc.de/${{ github.repository }}/hackertours
tags: |
type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/login-action@v1
with:
registry: git.hamburg.ccc.de
username: ${{ github.actor }}
password: ${{ secrets.REPO_TOKEN }}
- uses: https://github.com/int128/kaniko-action@v1
with:
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
cache: true
cache-repository: git.hamburg.ccc.de/${{ github.repository }}/cache

View file

@ -1,4 +1,4 @@
FROM docker.io/nginx FROM docker.io/nginx:1.26.0-bookworm
RUN rm -rf /usr/share/nginx/html && mkdir -p /usr/share/nginx/html RUN rm -rf /usr/share/nginx/html && mkdir -p /usr/share/nginx/html
COPY public /usr/share/nginx/html COPY public /usr/share/nginx/html