Skip to content

Commit

Permalink
Merge pull request #1584 from fluxcd/arm64-support
Browse files Browse the repository at this point in the history
Arm64 arch in website dev environment, path-based trigger
  • Loading branch information
Kingdon Barrett authored Jul 27, 2023
2 parents c886f2d + 3afacac commit 4dc8476
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 41 deletions.
48 changes: 47 additions & 1 deletion .github/workflows/build-push-hugo-image.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,55 @@
name: push-hugo
name: push-hugo-support

on:
workflow_dispatch:

push:
branches:
- main
paths:
- Dockerfile
- netlify.toml

jobs:
hugo-support:
runs-on: ubuntu-latest
needs: hugo-image
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_FLUXCD_USER }}
password: ${{ secrets.DOCKER_FLUXCD_PASSWORD }}
-
name: Checkout repo
uses: actions/checkout@v3
-
name: Set repo_owner variable
run: make --silent print-repo-owner >> $GITHUB_ENV
-
name: Set hugo_version variable
run: make --silent print-hugo-version >> $GITHUB_ENV
-
name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
builder: ${{ steps.buildx.outputs.name }}
build-args: |
HUGO_VERSION=${{ env.hugo_version }}
tags: ${{ env.repo_owner }}/website:hugo-support

hugo-image:
runs-on: ubuntu-latest
steps:
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/build-push-hugo-support.yml

This file was deleted.

0 comments on commit 4dc8476

Please sign in to comment.