Skip to content

Commit

Permalink
feat: Add ARM images (Resolves #38) (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
zachomedia authored Jul 6, 2023
1 parent 1bebb85 commit f7403a1
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 10 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Set environment variables
shell: bash
Expand Down Expand Up @@ -42,6 +48,7 @@ jobs:
with:
push: true
tags: zachomedia/cert-manager-webhook-pdns:${{ env.TAG }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ env.TAG }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Set environment variables
shell: bash
Expand All @@ -33,6 +39,7 @@ jobs:
with:
push: false
tags: zachomedia/cert-manager-webhook-pdns:${{ env.TAG }}
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ env.TAG }}
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tags.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Set environment variables
shell: bash
Expand Down Expand Up @@ -39,6 +45,7 @@ jobs:
with:
push: true
tags: zachomedia/cert-manager-webhook-pdns:${{ env.TAG }},zachomedia/cert-manager-webhook-pdns:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v8
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ env.TAG }}
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ $(shell mkdir -p "$(OUT)")
setup:
./scripts/fetch-test-binaries.sh
./scripts/setup-tests.sh
docker-compose -f docker-compose.test.yaml up --build -d
docker compose -f docker-compose.test.yaml up --build -d

clean:
rm -rf _out/
docker-compose -f docker-compose.test.yaml down -v
docker compose -f docker-compose.test.yaml down -v
go clean
go clean -testcache

Expand Down
10 changes: 2 additions & 8 deletions scripts/fetch-test-binaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,8 @@ set -e
#source ${hack_dir}/common.sh

k8s_version=1.26.1
goarch=amd64
goos="unknown"

if [[ "$OSTYPE" == "linux-gnu" ]]; then
goos="linux"
elif [[ "$OSTYPE" == "darwin"* ]]; then
goos="darwin"
fi
goarch=$(go env GOARCH)
goos=$(go env GOOS)

if [[ "$goos" == "unknown" ]]; then
echo "OS '$OSTYPE' not supported. Aborting." >&2
Expand Down

0 comments on commit f7403a1

Please sign in to comment.