Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tasso94 authored Jul 18, 2023
1 parent b2834ea commit ab496ca
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pipeline.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash -ex

EE=${EE:-false}
SNAPSHOT=${SNAPSHOT:-true}

if [ -z "$SNAPSHOT" ]; then
SNAPSHOT_ARGUMENT=""
else
SNAPSHOT_ARGUMENT="--build-arg SNAPSHOT=${SNAPSHOT}"
fi

# evaluate if the version argument must be passed
if [ -z "$VERSION" ]; then
Expand All @@ -21,6 +26,7 @@ docker buildx build . \
--build-arg PASSWORD=${NEXUS_PASS} \
--build-arg SNAPSHOT=${SNAPSHOT} \
${VERSION_ARGUMENT} \
${SNAPSHOT_ARGUMENT} \
--cache-to type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \
--cache-from type=gha,scope="$GITHUB_REF_NAME-$DISTRO-image" \
--load
Expand Down

0 comments on commit ab496ca

Please sign in to comment.