Skip to content

Commit

Permalink
fix: use env.INTERNAL_TAG and env.JOBS
Browse files Browse the repository at this point in the history
  • Loading branch information
wdconinc committed May 13, 2024
1 parent 23107f4 commit e36d434
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ env:
GH_REGISTRY_USER: eic
GH_PUSH: 1

## Number of jobs to start during container builds
JOBS: 4

## Internal tag used for the CI
INTERNAL_TAG: pipeline-${{ github.run_id }}

jobs:
base:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -64,7 +70,7 @@ jobs:
platforms: ${{ matrix.PLATFORM }}
push: true
tags: |
ghcr.io/eic/${{ matrix.BUILD_IMAGE }}:gha-${{ github.run_id }}
ghcr.io/eic/${{ matrix.BUILD_IMAGE }}:${{ env.INTERNAL_TAG }}
build-args: |
BASE_IMAGE=${{ matrix.BASE_IMAGE }}
BUILD_IMAGE=${{ matrix.BUILD_IMAGE }}
Expand Down Expand Up @@ -139,12 +145,12 @@ jobs:
platforms: ${{ matrix.PLATFORM }}
push: true
tags: |
ghcr.io/eic/${{ matrix.BUILD_IMAGE }}:gha
ghcr.io/eic/${{ matrix.BUILD_IMAGE }}:${{ env.INTERNAL_TAG }}
build-args: |
DOCKER_REGISTRY=${{ env.GH_REGISTRY }}/${{ env.GH_REGISTRY_USER }}/
BASE_IMAGE=${{ matrix.BASE_IMAGE }}
BUILD_IMAGE=${{ matrix.BUILD_IMAGE }}
INTERNAL_TAG=gha-${{ github.run_id }}
INTERNAL_TAG=${{ env.INTERNAL_TAG }}
SPACK_ORGREPO=${{ steps.spack.outputs.orgrepo }}
SPACK_VERSION=${{ steps.spack.outputs.version }}
SPACK_CHERRYPICKS=${{ steps.spack.outputs.cherrypicks }}
Expand All @@ -154,5 +160,6 @@ jobs:
EICSPACK_CHERRYPICKS=${{ steps.eic-spack.outputs.cherrypicks }}
S3_ACCESS_KEY=${{ secrets.S3_ACCESS_KEY }}
S3_SECRET_KEY=${{ secrets.S3_SECRET_KEY }}
jobs=${{ env.JOBS }}
cache-from: type=gha,scope=${{ github.workflow }}
cache-to: type=gha,mode=max,scope=${{ github.workflow }}

0 comments on commit e36d434

Please sign in to comment.