Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
feat: release tag latest version with stable tag
Browse files Browse the repository at this point in the history
Backstage parodos is still under different version tracking, so not
added here yet!

Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
  • Loading branch information
eloycoto committed Jul 26, 2023
1 parent 5e6a361 commit ddf4548
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release_append.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ jobs:
with:
version: 'v1.27.0'

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: "quay.io"
username: "parodos-dev+githubpush"
password: "${{ secrets.QUAY_GITHUB_TOKEN }}"

- name: Build
run: |
make release-manifests
Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ release-all: update-version release git-release git-tag build-images tag-images

release-manifests:
./hack/scripts/release.sh $(RELEASE_VERSION)
./hack/scripts/stable_images.sh v$(RELEASE_VERSION)

##@ Run
.PHONY: docker-run docker-stop
Expand Down
16 changes: 16 additions & 0 deletions hack/scripts/stable_images.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
#
export VERSION=${1:-1.0}

echo "Pushing stable images for ${VERSION}";
SERVICES=("workflow-service" "notification-service")


for service in "${SERVICES[@]}"; do
source_image="quay.io/parodos-dev/${service}:${VERSION}"
target_image="quay.io/parodos-dev/${service}:stable"

docker pull "${source_image}"
docker tag "${source_image}" "${target_image}"
docker push "${target_image}"
done

0 comments on commit ddf4548

Please sign in to comment.