Hugo version bump to 0.145.0 #421
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image build CI | |
on: | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- '.github/**' | |
push: | |
branches: | |
- release/* | |
paths-ignore: | |
- '.github/**' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
discussions: write | |
issues: write | |
id-token: write | |
attestations: write | |
jobs: | |
build: | |
runs-on: floryn90-runners | |
steps: | |
- name: Clean Workspace | |
uses: AutoModality/action-clean@v1 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install build essential | |
uses: ./.github/actions/install_deps | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
id: setup-buildx | |
with: | |
version: latest | |
- name: Docker login | |
uses: docker/login-action@v3 | |
with: | |
username: floryn90 | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: floryn90/hugo | |
- name: Prepare | |
shell: bash | |
run: make prepare | |
- name: Build | |
shell: bash | |
run: make build | |
# - name: Get builded image tags | |
# id: export-images | |
# run: | | |
# images=$(docker images --filter reference=floryn90/hugo --format '"{{.Repository}}:{{.Tag}}"') | |
# echo -e "${images[@]}" | |
# echo "images=${{ toJson(env.iamges) }}" >> $GITHUB_OUTPUT | |
- name: Upload target content | |
uses: actions/upload-artifact@v4 | |
with: | |
name: target | |
path: target | |
- name: Push edge images | |
if: ${{ ! startsWith(github.ref, 'refs/tags/') }} | |
shell: bash | |
run: make push-edge | |
# - name: Attest | |
# uses: actions/attest-build-provenance@v2 | |
# with: | |
# subject-name: 'docker.io/floryn90/hugo' | |
# # subject-name: 'floryn90/hugo' | |
# push-to-registry: true |