name actions and remove debug
All checks were successful
/ build (push) Successful in 16s

This commit is contained in:
Stefan Bethke 2024-07-30 19:48:20 +02:00
parent 1c9a607f72
commit e8ac961432

View file

@ -7,23 +7,25 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - name: Checkout project
uses: actions/checkout@v4
- name: Run hugo - name: Run hugo
run: docker run --rm -it -v ${{ github.workspace }}:/src docker.io/hugomods/hugo:latest hugo run: docker run --rm -it -v ${{ github.workspace }}:/src docker.io/hugomods/hugo:latest hugo
- name: debug - name: Compute Image Metadata
run: ls -la public uses: docker/metadata-action@v5
- uses: docker/metadata-action@v5
id: metadata id: metadata
with: with:
images: git.hamburg.ccc.de/${{ github.repository }}/hackertours images: git.hamburg.ccc.de/${{ github.repository }}/hackertours
tags: | tags: |
type=raw,value=latest,enable={{is_default_branch}} type=raw,value=latest,enable={{is_default_branch}}
- uses: docker/login-action@v1 - name: Log in to Image Registry
uses: docker/login-action@v1
with: with:
registry: git.hamburg.ccc.de registry: git.hamburg.ccc.de
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.REPO_TOKEN }} password: ${{ secrets.REPO_TOKEN }}
- uses: https://github.com/int128/kaniko-action@v1 - name: Build image with kaniko
uses: https://github.com/int128/kaniko-action@v1
with: with:
push: true push: true
tags: ${{ steps.metadata.outputs.tags }} tags: ${{ steps.metadata.outputs.tags }}