Skip to content

Commit

Permalink
Merge pull request #279 from lacework/afiune/circleci
Browse files Browse the repository at this point in the history
ci: updates previous to release
  • Loading branch information
afiune authored Jan 5, 2021
2 parents 5aeec3c + ea23a30 commit 1ccaa26
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 27 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2.1
parameters:
slack-mentions:
type: string
default: 'afiune,scottford'
default: 'allies'
only_for_branches:
type: string
default: 'master'
Expand Down
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 1ccaa26

Please sign in to comment.