Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
oksana-grishchenko committed Nov 22, 2024
1 parent 144432d commit c435360
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions .github/workflows/operator-early-adoption.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ jobs:
# IMAGE: ${{ github.event.inputs.image }}
IMAGE: "docker.io/percona/percona-xtradb-cluster-operator:1.15.1-community-bundle"
VS_BRANCH: ${{ github.event.inputs.vs_branch }}
TIMESTAMP: ""
VS_TAG: ""
TIMESTAMP: "$(date +'%Y%m%d%H%M%S')"
AAA: "1.10000.0-rc${{ env.TIMESTAMP }}"
BBB: "everest-test${{ env.TIMESTAMP }}"

steps:
- name: Get current date
Expand All @@ -67,21 +70,20 @@ jobs:
- name: Set environment variables
run: |
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
echo "ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')" >> $GITHUB_ENV
echo "OS=$(uname | awk '{print tolower($0)}')" >> $GITHUB_ENV
echo "VS_URL=http://localhost:$VS_PORT" >> $GITHUB_ENV
echo "TIMESTAMP=${{ steps.date.outputs.date }}" >> $GITHUB_ENV
echo "VERSION=1.10000.0-rc${{ steps.date.outputs.date }}" >> $GITHUB_ENV
- name: Set up Go release
uses: percona-platform/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Print message
run: |
echo "::notice title=Feature Build Created::The $VERSION feature build has been created."
echo "VERSION=1.10000.0-rc$TIMESTAMP" >> $GITHUB_ENV
echo "VS_TAG=everest-test$TIMESTAMP" >> $GITHUB_ENV

# - name: Set up Go release
# uses: percona-platform/setup-go@v4
# with:
# go-version: ${{ matrix.go-version }}
#
#
# - name: Set GO_VERSION environment variable
# run: |
Expand All @@ -105,13 +107,6 @@ jobs:
# ${{ matrix.os }}-go-${{ matrix.go-version }}-build-${{ github.ref }}-
# ${{ matrix.os }}-go-${{ matrix.go-version }}-build-
#
# - name: Start local Kubernetes cluster with the local registry
# uses: medyagh/setup-minikube@latest
# id: minikube
# with:
# cpus: 2
# memory: 2000m
#
# - name: Login to GitHub Container Registry
# uses: docker/login-action@v3
# with:
Expand Down Expand Up @@ -145,8 +140,7 @@ jobs:
# - name: Apply VS manifest
# run: |
# kubectl create ns everest-system
# # !!! change tag and repo
# sed -i "s/perconalab\/version-service:.*/perconalab\/everest-catalog:test/g" percona-version-service/deploy.yaml
# sed -i "s/perconalab\/version-service:.*/perconalab\/version-service:everest-test$TIMESTAMP/g" percona-version-service/deploy.yaml
# kubectl apply -f percona-version-service/deploy.yaml -n everest-system
# 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 &
Expand Down Expand Up @@ -330,15 +324,24 @@ jobs:
# push: true
# tags: perconalab/everest:${{ env.VERSION }}
#
# - name: Provision Everest using CLI
# shell: bash
# run: |
# make feature-build-cli
# ./bin/everestctl install -v \
# --version $VERSION \
# --version-metadata-url $VS_URL \
# --operator.mongodb \
# --operator.postgresql \
# --operator.xtradb-cluster \
# --skip-wizard \
# --namespaces everest
# - name: Start local Kubernetes cluster
# uses: medyagh/setup-minikube@latest
# id: minikube
# with:
# cpus: 2
# memory: 2000m

- name: Check the Feature build can be installed successfully
shell: bash
run: |
#make feature-build-cli
#./bin/everestctl install -v \
# --version $VERSION \
# --version-metadata-url $VS_URL \
# --operator.mongodb \
# --operator.postgresql \
# --operator.xtradb-cluster \
# --skip-wizard \
# --namespaces everest
echo "::notice title=Feature Build Created::The $VERSION feature build has been created."

0 comments on commit c435360

Please sign in to comment.