Skip to content

Commit

Permalink
add sha label to img
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1queee committed May 12, 2021
1 parent ef91a2a commit 5d4d051
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
release:
if: ${{ github.repository == 'shipwright-io/build' }}
# if: ${{ github.repository == 'shipwright-io/build' }}
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
6 changes: 4 additions & 2 deletions hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ echo "$REGISTRY_PASSWORD" | ko login -u "$REGISTRY_USERNAME" --password-stdin "$

echo "Building container image"

echo "Adding shp-sha label with value: ${GITHUB_SHA}"

# Using defaults, this pushes to:
# quay.io/shipwright/shipwright-build-controller:latest
KO_DOCKER_REPO="$IMAGE_HOST/$IMAGE" GOFLAGS="${GO_FLAGS}" ko resolve -t "$TAG" --bare --platform=all -R -f deploy/ > release.yaml
KO_DOCKER_REPO="$IMAGE_HOST/$IMAGE" GOFLAGS="${GO_FLAGS} -tags=pprof_enabled" ko resolve -t "$TAG-debug" --bare --platform=all -R -f deploy/ > release-debug.yaml
KO_DOCKER_REPO="$IMAGE_HOST/$IMAGE" GOFLAGS="${GO_FLAGS}" ko resolve -t "$TAG" --image-label "shp-sha=${GITHUB_SHA}" --bare --platform=all -R -f deploy/ > release.yaml
KO_DOCKER_REPO="$IMAGE_HOST/$IMAGE" GOFLAGS="${GO_FLAGS} -tags=pprof_enabled" ko resolve -t "$TAG-debug" --image-label "shp-sha=${GITHUB_SHA}" --bare --platform=all -R -f deploy/ > release-debug.yaml

0 comments on commit 5d4d051

Please sign in to comment.