hackertours/.forgejo/workflows/image.yaml
Stefan Bethke ae0ba798cf
Some checks failed
/ build (push) Failing after 10s
Use correct uses:
2024-07-30 19:15:29 +02:00

35 lines
1.1 KiB
YAML

on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run the build process with Docker
uses: https://github.com/addnab/docker-run-action@v3
with:
image: docker.io/hugomods/hugo:latest
options: -v ${{ github.workspace }}:/src
run: |
hugo
- 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