Skip to content

Commit

Permalink
add build args to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed Nov 22, 2024
1 parent e4e37f3 commit 311bce3
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/build-docker-julia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jobs:
with:
images: ${{ env.IMAGE_NAME }}

- name: Build Docker image
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
load: true
tags: ${{ env.TEST_TAG }}
# - name: Build Docker image
# uses: docker/build-push-action@v6
# with:
# context: .
# platforms: linux/amd64
# load: true
# tags: ${{ env.TEST_TAG }}

- name: Test CLI
working-directory: ./test
run: source ./test-IFTPipeline.jl-cli.sh && IFT="docker run -v `pwd`:/app -w /app --rm ${{ env.TEST_TAG }}" preprocess_lopez input_data/ne-greenland.20220914.terra.250m
# - name: Test CLI
# working-directory: ./test
# run: source ./test-IFTPipeline.jl-cli.sh && IFT="docker run -v `pwd`:/app -w /app --rm ${{ env.TEST_TAG }}" preprocess_lopez input_data/ne-greenland.20220914.terra.250m

- name: Build and push Docker image
uses: docker/build-push-action@v6
Expand All @@ -58,4 +58,6 @@ jobs:
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
JULIA_CPU_TARGET="generic;sandybridge,-xsaveopt,clone_all;haswell,-rdrnd,base(1);x86-64-v4,-rdrnd,base(1)"

0 comments on commit 311bce3

Please sign in to comment.