Skip to content

Commit

Permalink
Let's try to reverse it
Browse files Browse the repository at this point in the history
  • Loading branch information
heerener committed Oct 1, 2024
1 parent 68a13f2 commit 1d2d6df
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/spacktainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ jobs:
base-container-job:
runs-on:
- codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}
- image:LINUX_CONTAINER-quay.io/buildah/stable:latest
steps:
- name: clone repo
uses: actions/checkout@v4
Expand All @@ -15,14 +14,13 @@ jobs:
AWS_BUILDER_REPO_URL: ${{ secrets.AWS_REPO_URL }}/spacktainers/builder
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ECR_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ECR_SECRET_ACCESS_KEY }}
BUILDAH_EXTRA_ARGS: (
'--label org.opencontainers.image.revision="$GITHUB_SHA"'
BUILDAH_EXTRA_ARGS: ( '--label org.opencontainers.image.revision="$GITHUB_SHA"'
' --label org.opencontainers.image.authors="$GITHUB_TRIGGERING_ACTOR"'
' --label org.opencontainers.image.url="https://github.com/${GITHUB_REPOSITORY}"'
' --label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}"'
' --label ch.epfl.bbpgitlab.ci-pipeline-url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"'
' --label ch.epfl.bbpgitlab.ci-commit-branch="$GITHUB_REF_NAME"'
'--build-arg SPACK_BRANCH=59179764d711a9a4e9e36b5b08a8587e2455a651')
' --label ch.epfl.bbpgitlab.ci-commit-branch="$GITHUB_REF_NAME"' '--build-arg
SPACK_BRANCH=59179764d711a9a4e9e36b5b08a8587e2455a651')
# ' --label org.opencontainers.image.created="$CI_JOB_STARTED_AT"'
run: |-
echo "Creating builder"
Expand All @@ -45,14 +43,13 @@ jobs:
AWS_BUILDER_REPO_URL: ${{ secrets.AWS_REPO_URL }}/spacktainers/runtime
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ECR_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_ECR_SECRET_ACCESS_KEY }}
BUILDAH_EXTRA_ARGS: (
'--label org.opencontainers.image.revision="$GITHUB_SHA"'
BUILDAH_EXTRA_ARGS: ( '--label org.opencontainers.image.revision="$GITHUB_SHA"'
' --label org.opencontainers.image.authors="$GITHUB_TRIGGERING_ACTOR"'
' --label org.opencontainers.image.url="https://github.com/${GITHUB_REPOSITORY}"'
' --label org.opencontainers.image.source="https://github.com/${GITHUB_REPOSITORY}"'
' --label ch.epfl.bbpgitlab.ci-pipeline-url="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID"'
' --label ch.epfl.bbpgitlab.ci-commit-branch="$GITHUB_REF_NAME"'
'--build-arg SPACK_BRANCH=59179764d711a9a4e9e36b5b08a8587e2455a651')
' --label ch.epfl.bbpgitlab.ci-commit-branch="$GITHUB_REF_NAME"' '--build-arg
SPACK_BRANCH=59179764d711a9a4e9e36b5b08a8587e2455a651')
# ' --label org.opencontainers.image.created="$CI_JOB_STARTED_AT"'
run: |-
# Holy code duplication, Batman!
Expand All @@ -73,7 +70,7 @@ jobs:
spacktainer-build-job:
runs-on:
- codebuild-spacktainers-${{ github.run_id }}-${{ github.run_attempt }}
- image:ubuntu-6.0
- image:LINUX_IMAGE-${{ secrets.AWS_REPO_URL }}/spacktainers/builder:latest
- instance-size:small
steps:
- name: configure-build-cache
Expand Down

0 comments on commit 1d2d6df

Please sign in to comment.