Skip to content

Commit

Permalink
Use branch as builder image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
srd424 committed Sep 24, 2023
1 parent 9befb5c commit a833ada
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/build-as.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ env:
REGISTRY: ghcr.io
BUILDER_IMAGE: srd424/audioserve-builder
BUILD_TYPE: release
BUILDER_TAG: ${{ github.ref_name == 'master' && 'latest' || github.ref_name }}


jobs:
build:
Expand Down Expand Up @@ -53,7 +55,7 @@ jobs:
as0-
as
- name: Docker pull
run: docker pull ${{ env.REGISTRY }}/${{ env.BUILDER_IMAGE }}
run: docker pull ${{ env.REGISTRY }}/${{ env.BUILDER_IMAGE }}:${{ env.BUILDER_TAG }}
- name: Docker run
run: mkdir -p ./result ./build && docker run -v ${GITHUB_WORKSPACE}/audioserve-src:/src -v $PWD/build:/build -v $PWD/result:/result -e CARGO_PROFILE=${{ env.BUILD_TYPE }} ${{ env.REGISTRY }}/${{ env.BUILDER_IMAGE }}
- name: zip results
Expand Down

0 comments on commit a833ada

Please sign in to comment.