Skip to content

Commit

Permalink
Fix docker image publishing (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
oakrizan authored Dec 21, 2023
1 parent c7e673d commit 446ea21
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ steps:
command:
- ".buildkite/scripts/build.sh {{matrix.makefile}}"
- ".buildkite/scripts/publish.sh {{matrix.makefile}}"
env:
REPOSITORY: "${STAGING_IMAGE}"
if: build.env("BUILDKITE_PULL_REQUEST") != "false"
notify:
- github_commit_status:
Expand Down
3 changes: 3 additions & 0 deletions .buildkite/scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ with_mage
google_cloud_auth

make -C go -f "${MAKEFILE}" build"${is_arm}" GS_BUCKET_PATH=ingest-buildkite-ci
echo ":: List Docker images staging ::"
docker images --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" --filter=reference="${STAGING_IMAGE}/golang-crossbuild"

echo ":: List Docker images production ::"
docker images --format "table {{.Repository}}:{{.Tag}}\t{{.Size}}" --filter=reference="${DOCKER_REGISTRY}/beats-dev/golang-crossbuild"


2 changes: 1 addition & 1 deletion .buildkite/scripts/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

source .buildkite/scripts/common.sh

TAG="v{$1}"
TAG="v$1"
TAG_EXISTS=$(tag_Exists ${TAG})

set_git_config() {
Expand Down

0 comments on commit 446ea21

Please sign in to comment.