Skip to content

Commit

Permalink
Write public deployment key
Browse files Browse the repository at this point in the history
  • Loading branch information
heerener committed Oct 3, 2024
1 parent 668df28 commit 2fe5367
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/spacktainer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ jobs:
--label ch.epfl.bbpgitlab.ci-commit-branch="$GITHUB_REF_NAME"
--build-arg SPACK_BRANCH=develop
# ' --label org.opencontainers.image.created="$CI_JOB_STARTED_AT"'
SPACK_DEPLOYMENT_KEY_PUB: ${{ secrets.SPACK_DEPLOYMENT_KEY_PUB }}
run: |-
echo "Creating builder"
set -x
apt install -y awscli buildah podman
export STORAGE_DRIVER=vfs # allows to build inside containers without additional mounts
export BUILDAH_FORMAT=docker # enables ONBUILD instructions which are not OCI compatible
export REGISTRY_IMAGE_TAG=latest # for now
echo "${SPACK_DEPLOYMENT_KEY_PUB}" > key.pub
aws ecr get-login-password --region us-east-1 | buildah login --username AWS --password-stdin ${AWS_ECR_URL}
# This is written like that in case $BUILDAH_EXTRA_ARGS has args that require spaces,
# which is tricky with shell variable expansion. Similar to Kaniko, see also:
Expand Down

0 comments on commit 2fe5367

Please sign in to comment.