Skip to content

Commit

Permalink
add build args
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnuj committed Jul 27, 2023
1 parent c8aac4d commit 05fd7ef
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/base-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Build
name: base-image

on:
pull_request:
Expand Down
64 changes: 32 additions & 32 deletions .github/workflows/cw-builder-docker.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Build
name: cw-builder

on:
pull_request:
Expand All @@ -18,31 +18,31 @@ jobs:
strategy:
matrix:
platform: [linux/amd64,linux/arm64]
name: [
"v1.3.0",
"v1.2.4",
"v1.2.3",
"v1.2.2",
"v1.2.1",
"v1.2.0",
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.1",
"v1.0.0",
"v0.16.7",
"v0.16.6",
"v0.16.5",
"v0.16.3",
"v0.16.2",
"v0.16.1",
"v0.16.0",
"v0.15.1",
"v0.15.0",
"v0.14.0",
"v0.13.1",
"v0.13.0",
"v0.12.0",
version: [
"1.3.0",
"1.2.4",
"1.2.3",
"1.2.2",
"1.2.1",
"1.2.0",
"1.1.2",
"1.1.1",
"1.1.0",
"1.0.1",
"1.0.0",
"0.16.7",
"0.16.6",
"0.16.5",
"0.16.3",
"0.16.2",
"0.16.1",
"0.16.0",
"0.15.1",
"0.15.0",
"0.14.0",
"0.13.1",
"0.13.0",
"0.12.0",
]
exclude:
- name: "v0.16.5"
Expand Down Expand Up @@ -105,14 +105,11 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
images: |
ghcr.io/${{ github.repository }}/${{ matrix.name }}
${{ secrets.DOCKERHUB_USER }}/${{ matrix.name }}
ghcr.io/${{ github.repository }}/cw-builder
${{ secrets.DOCKERHUB_USER }}/cw-bulder
tags: |
type=sha
type=edge,branch=test
type=semver,pattern={{tag}}
type=semver,pattern={{version}}
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value=${{ matrix.version }}
- name: Build docker image
uses: docker/build-push-action@v4
Expand All @@ -122,3 +119,6 @@ jobs:
platforms: ${{ matrix.platform }}
tags: ${{ env.DOCKER_METADATA_OUTPUT_TAGS }}
labels: ${{ env.DOCKER_METADATA_OUTPUT_LABELS }}
build-args: |
WASMVM_VERSION="v${{ matrix.version }}"
BUILDPLATFORM="${{ matrix.platform }}"

0 comments on commit 05fd7ef

Please sign in to comment.