Skip to content

Commit

Permalink
EVEREST-107 feature build print changed env vars to stdout
Browse files Browse the repository at this point in the history
This helps to understand with which params the FB was created
  • Loading branch information
recharte committed Jan 21, 2025
1 parent 97e5007 commit c18a579
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/feature-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,22 @@ jobs:
- name: Set environment variables
run: |
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 "ARCH=$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')" | tee -a $GITHUB_ENV
echo "OS=$(uname | awk '{print tolower($0)}')" | tee -a $GITHUB_ENV
echo "VS_URL=http://localhost:$VS_PORT" | tee -a $GITHUB_ENV
TIMESTAMP=$(date +'%Y%m%d%H%M%S')
V="1.10000.0-rc$TIMESTAMP"
echo "VERSION=$V" >> $GITHUB_ENV
echo "VERSION_TAG=v$V" >> $GITHUB_ENV
echo "VS_TAG=everest-test$TIMESTAMP" >> $GITHUB_ENV
echo "VERSION=$V" | tee -a $GITHUB_ENV
echo "VERSION_TAG=v$V" | tee -a $GITHUB_ENV
echo "VS_TAG=everest-test$TIMESTAMP" | tee -a $GITHUB_ENV
# Fall back to default branch if the specified branch does not exist
git ls-remote --heads --exit-code --quiet https://github.com/Percona-Lab/percona-version-service.git $VS_BRANCH > /dev/null || echo "VS_BRANCH=production" >> $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/percona-helm-charts.git $HELM_BRANCH > /dev/null || echo "HELM_BRANCH=main" >> $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/everest.git $EVEREST_BRANCH > /dev/null || echo "EVEREST_BRANCH=main" >> $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/everest-operator.git $EVEREST_OPERATOR_BRANCH > /dev/null || echo "EVEREST_OPERATOR_BRANCH=main" >> $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/everest-catalog.git $EVEREST_CATALOG_BRANCH > /dev/null || echo "EVEREST_CATALOG_BRANCH=main" >> $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/Percona-Lab/percona-version-service.git $VS_BRANCH > /dev/null || echo "VS_BRANCH=production" | tee -a $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/percona-helm-charts.git $HELM_BRANCH > /dev/null || echo "HELM_BRANCH=main" | tee -a $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/everest.git $EVEREST_BRANCH > /dev/null || echo "EVEREST_BRANCH=main" | tee -a $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/everest-operator.git $EVEREST_OPERATOR_BRANCH > /dev/null || echo "EVEREST_OPERATOR_BRANCH=main" | tee -a $GITHUB_ENV
git ls-remote --heads --exit-code --quiet https://github.com/percona/everest-catalog.git $EVEREST_CATALOG_BRANCH > /dev/null || echo "EVEREST_CATALOG_BRANCH=main" | tee -a $GITHUB_ENV
- name: Create temporary directory for storing artifacts
run: |
Expand Down

0 comments on commit c18a579

Please sign in to comment.