Skip to content

Commit

Permalink
[GHA] Continue switch to make-env
Browse files Browse the repository at this point in the history
* Remove unneeded step
* Fix not using build-env in some steps
* Add missing chart repo
* Fix adding token to wrong step
  • Loading branch information
meln5674 committed Jul 24, 2024
1 parent 290a091 commit b0bbf80
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,14 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- uses: actions/setup-go@v4
with:
go-version: '^${{ env.GO_VERSION }}'

- name: Install Dependencies
run: |
make -j deps all-helm-tools chart-deps
./build-env.sh make -j deps all-helm-tools chart-deps
# Run Linter
- name: Lint standalone chart
run: |
make helm-hog
./build-env.sh make helm-hog
test:
# runs-on: ubuntu-latest
Expand Down Expand Up @@ -202,25 +198,26 @@ jobs:
./build-env.sh make -j all-helm-tools
./build-env.sh helm repo add jetstack https://charts.jetstack.io
./build-env.sh helm repo add zalando https://opensource.zalando.com/postgres-operator/charts/postgres-operator
./build-env.sh helm repo add mino https://charts.min.io/
./build-env.sh make -j chart-deps
- name: Log into Registry
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
./build-env.sh helm registry login "${REGISTRY}" -u "${GITHUB_ACTOR}" -p "${GITHUB_TOKEN}"
- name: Package Charts
env:
GIT_TAG: '${{ steps.tagName.outputs.tag }}'
run: |
./build-env.sh ./set-chart-versions "${HELM_REPO}" "${GIT_TAG}" "${GITHUB_SHA}"
./build-env.sh ./set-chart-versions.sh "${HELM_REPO}" "${GIT_TAG}" "${GITHUB_SHA}"
./build-env.sh make -j charts
# Release charts
- name: Push Charts
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
run: |
for chart in bin/charts/*.tgz ; do
helm push "${chart}" "${HELM_REPO}"
./build-env.sh helm push "${chart}" "${HELM_REPO}"
done

0 comments on commit b0bbf80

Please sign in to comment.