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

feat: release tag latest version with stable tag #482

Merged
merged 1 commit into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading