Skip to content

Commit

Permalink
build: stop publishing containers to old docker repo
Browse files Browse the repository at this point in the history
We are going to stop publishing copies of the Lacework CLI containers to
the old repository `techallylw/lacework-cli`.

Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed Jan 5, 2021
1 parent 5e4c0e6 commit ea23a30
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions scripts/release_containers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ set -eou pipefail

# The repository where we are hosting the lacework-cli containers
readonly repository="lacework/lacework-cli"
# @afiune let us continue posting the Lacework CLI to the old reporitory for a few
readonly old_repo="techallylw/lacework-cli"
readonly project_name=lacework-cli

log() {
Expand All @@ -31,11 +29,6 @@ log "releasing container from SCRATCH"
docker build -t "${repository}:scratch" --no-cache .
docker push "${repository}:scratch"

# @afiune let us continue posting the Lacework CLI to the old reporitory for a few
log "releasing old container for SCRATCH"
docker image tag "${repository}:scratch" "${old_repo}:scratch"
docker push "${old_repo}:scratch"

# when updating the distributions below, please make sure to update
# the script 'release.sh' inside the 'script/' folder
distros=(
Expand All @@ -51,11 +44,6 @@ for dist in "${distros[@]}"; do
log "releasing container for ${dist}"
docker build -f "cli/images/${dist}/Dockerfile" --no-cache -t "${repository}:${dist}" .
docker push "${repository}:${dist}"

# @afiune let us continue posting the Lacework CLI to the old reporitory for a few
log "releasing old container for ${dist}"
docker image tag "${repository}:${dist}" "${old_repo}:${dist}"
docker push "${old_repo}:${dist}"
done

log "creating docker manifest"
Expand All @@ -70,18 +58,4 @@ docker manifest create "${repository}:latest" \
log "pushing docker manifest"
docker manifest push "${repository}:latest" --purge

# @afiune let us continue posting the Lacework CLI to the old reporitory for a few
log "creating docker manifest for the old repository ${old_repo}"
docker manifest create "${old_repo}:latest" \
"${old_repo}:scratch" \
"${old_repo}:ubi-8" \
"${old_repo}:centos-8" \
"${old_repo}:debian-10" \
"${old_repo}:ubuntu-1804" \
"${old_repo}:amazonlinux-2" --amend

log "pushing docker manifest for the old repository ${old_repo}"
docker manifest push "${old_repo}:latest" --purge

log "All docker containers have been released! (https://hub.docker.com/repository/docker/${repository})"
log "All docker containers have been released! (https://hub.docker.com/repository/docker/${old_repo})"

0 comments on commit ea23a30

Please sign in to comment.