Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix auto PR workflow #859

Merged
merged 2 commits into from
Aug 19, 2024
Merged
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
33 changes: 6 additions & 27 deletions .github/workflows/docker.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ jobs:
-
name: Set up Docker Buildx
uses: docker/[email protected]
-
name: Set up yq
uses: frenck/action-setup-yq@v1
-
name: Set up helmfile
uses: helmfile/[email protected]
-
name: Cache Docker layers
uses: actions/[email protected]
Expand Down Expand Up @@ -64,32 +70,6 @@ jobs:
with:
repository: wmde/wbaas-deploy
path: ./repos/wbaas-deploy-production
- name: Create helmfile docker shim
run: |
mkdir -p ~/.local/bin
docker pull ghcr.io/helmfile/helmfile:latest
echo 'docker run \
--rm \
--volume "${TMP_DIR}:${TMP_DIR}" \
--volume "${PWD}:/workdir" \
--workdir /workdir \
--user $(id -u):$(id -g) \
ghcr.io/helmfile/helmfile:latest helmfile $*' \
| tee ~/.local/bin/helmfile
chmod +x ~/.local/bin/helmfile
- name: Create yq docker shim
run: |
docker pull mikefarah/yq:latest
echo 'docker run \
--rm \
--volume "${TMP_DIR}:${TMP_DIR}" \
--volume "${PWD}:/workdir" \
--workdir /workdir \
--user $(id -u):$(id -g) \
mikefarah/yq:latest $*' \
| tee ~/.local/bin/yq
chmod +x ~/.local/bin/yq

-
name: Update helmfile values for local, staging and production
id: update-helmfile-values
Expand All @@ -109,7 +89,6 @@ jobs:
./bin/generate-values local ui
# run generate values script for staging from staging folder
./bin/generate-values staging ui

# run generate values script for prod from prod folder
cd ../wbaas-deploy-production
./bin/generate-values production ui
Expand Down
Loading