Skip to content

Commit

Permalink
test RC with timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Nov 22, 2024
1 parent cd6e765 commit 49565d9
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/operator-early-adoption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

env:
# VERSION constant higher than any potentially existing
VERSION: 1.10000.0
VERSION: 1.10000.0-rc20241121101830
CLI_PREREQUISITES: ">= 1.2.0"
K8S_PREREQUISITES: ">= 1.27"
VS_PORT: 8081
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
addons: registry
insecure-registry: "localhost:5000"

- name: Expose local registry
- name: Expose local registry # !!! remove local registry, keeping it for now to push VS images
run: |
kubectl port-forward --namespace kube-system service/registry $LOCAL_REGISTRY_PORT:80 &
Expand Down Expand Up @@ -141,6 +141,12 @@ jobs:
kubectl wait --for=jsonpath='{.status.readyReplicas}'=3 deployment/percona-version-service -n everest-system
kubectl port-forward svc/percona-version-service $VS_PORT:80 -n everest-system &
- name: Login to GitHub Container Registry # !!! move above, prior VS chagnes
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Operator - check out
uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -177,7 +183,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
${{ env.LOCAL_REGISTRY }}/perconalab/everest-operator
perconalab/everest-operator
tags: |
type=raw,value=${{ env.VERSION }}
Expand All @@ -186,7 +192,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
${{ env.LOCAL_REGISTRY }}/perconalab/everest-operator-bundle
perconalab/everest-operator-bundle
tags: |
type=raw,value=${{ env.VERSION }}
Expand All @@ -208,7 +214,6 @@ jobs:
- name: Catalog - checkout
uses: actions/checkout@v4
with:
ref: EVEREST-1563-variable-registry # !!! remove this line once merged
repository: percona/everest-catalog
path: everest-catalog
token: ${{ secrets.ROBOT_TOKEN }}
Expand All @@ -220,7 +225,6 @@ jobs:
--veneer-file ../veneer/everest-operator.yaml \
--channel fast-v0 \
--new-version ${{ env.VERSION }} \
--registry ${{ env.LOCAL_REGISTRY }} \
--test-repo \
cd ..
Expand Down Expand Up @@ -253,7 +257,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
${{ env.LOCAL_REGISTRY }}/perconalab/everest-catalog
perconalab/everest-catalog
tags: |
type=raw,value=${{ env.VERSION }}
type=raw,value=latest
Expand Down Expand Up @@ -282,18 +286,15 @@ jobs:
- name: Everest - update sources
run: |
# Update deploy manifest
sed -i "s/perconalab\/everest.*/$LOCAL_REGISTRY\/perconalab\/everest:$VERSION/g" deploy/quickstart-k8s.yaml
sed -i "s/percona\/everest.*/$LOCAL_REGISTRY\/perconalab\/everest:$VERSION/g" deploy/quickstart-k8s.yaml
sed -i "s/perconalab\/everest.*/perconalab\/everest:$VERSION/g" deploy/quickstart-k8s.yaml
sed -i "s/percona\/everest.*/perconalab\/everest:$VERSION/g" deploy/quickstart-k8s.yaml
# Change version in Makefile
sed -i "s/RELEASE_VERSION ?=.*/RELEASE_VERSION ?= v$VERSION/g" Makefile
# Change release manifest link: use local path to file
# Change release manifest link: use local path to the manifest file in version.go
sed -i "s/https:\/\/raw.githubusercontent.com\/percona\/everest\/v%s\///g" pkg/version/version.go
# Change release catalog image link: use LOCAL_REGISTRY
sed -i "s/docker.io/$LOCAL_REGISTRY/g" pkg/version/version.go
git status
- name: Everest UI - setup pnpm
uses: pnpm/action-setup@v4
Expand Down Expand Up @@ -326,7 +327,7 @@ jobs:
with:
context: .
push: true
tags: ${{ env.LOCAL_REGISTRY }}/perconalab/everest:${{ env.VERSION }}
tags: perconalab/everest:${{ env.VERSION }}

- name: Provision Everest using CLI
shell: bash
Expand Down

0 comments on commit 49565d9

Please sign in to comment.