Skip to content

Commit

Permalink
ci: temp changes for v0.3.0 multi-arch build
Browse files Browse the repository at this point in the history
  • Loading branch information
xJonathanLEI committed Nov 19, 2023
1 parent 710570b commit e27141d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "Build multi-arch images"

on:
push:
tags:
- "v*.*.*"
branches:
- "ci/temp"

jobs:
crate-info:
Expand All @@ -16,11 +16,7 @@ jobs:
- id: "derive"
name: "Derive crate info from Git tag"
run: |
FULL_REF="${{ github.ref }}"
REGEX="^refs\/tags\/v(.*)$"
[[ $FULL_REF =~ $REGEX ]];
echo "version=${BASH_REMATCH[1]}" >> $GITHUB_OUTPUT
echo "version=0.3.0" >> $GITHUB_OUTPUT
build-amd64:
name: "Build for linux/amd64"
Expand All @@ -34,6 +30,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
ref: "v0.3.0"

- name: "Build Docker image"
run: |
Expand Down Expand Up @@ -61,6 +59,8 @@ jobs:
steps:
- name: "Checkout"
uses: "actions/checkout@v3"
with:
ref: "v0.3.0"

- name: "Install cross"
run: |
Expand All @@ -72,6 +72,8 @@ jobs:
- name: "Build Docker image"
run: |
git fetch origin
git checkout origin/master .github
docker build -t ${DOCKER_REPOSITORY}:${{ needs.crate-info.outputs.version }}-arm64 -f ./.github/workflows/docker/Dockerfile.arm64 .
- name: "Export Docker image"
Expand Down

0 comments on commit e27141d

Please sign in to comment.