Skip to content

Commit

Permalink
Chore(ci): workflow to rebuild docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
till committed Feb 22, 2024
1 parent be4331e commit 702b5f0
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Docker Image
name: build

on:
pull_request:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/rebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: rebuild

on:
workflow_dispatch:
inputs:
hugo-version:
required: true

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: refs/tags/${{ inputs.hugo-version }}
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@8e5442c4ef9f78752691e2d8f8d19755c6f78e81
with:
images: ghcr.io/${{ github.repository }}
tags: type=semver,pattern={{raw}},value=${{ inputs.hugo-version }}
- uses: docker/build-push-action@v5
with:
build-args: ${{ inputs.hugo-version }}
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
2 changes: 1 addition & 1 deletion .github/workflows/update-hugo.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: update-hugo
name: update

on:
workflow_dispatch:
Expand Down

0 comments on commit 702b5f0

Please sign in to comment.