Skip to content
Merged
Show file tree
Hide file tree
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
18 changes: 12 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,32 +65,37 @@ jobs:
run: |
make test
- name: Authenticate with Google Cloud
if: github.actor != 'dependabot[bot]'
id: auth
uses: google-github-actions/auth@ba79af03959ebeac9769e648f473a284504d9193 # v2.1.10
with:
credentials_json: ${{ secrets.GCR_KEY }}
- name: Setup Google Cloud SDK
if: github.actor != 'dependabot[bot]'
uses: google-github-actions/setup-gcloud@77e7a554d41e2ee56fc945c52dfd3f33d12def9a # v2.1.4
- run: |
gcloud auth configure-docker europe-west2-docker.pkg.dev
- name: Configure Docker for Artifact Registry
if: github.actor != 'dependabot[bot]'
run: |
gcloud auth configure-docker "$REGISTRY_HOSTNAME"

- name: pr docker tag
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]'
id: tag
run: |
PR=$(echo "$GITHUB_REF" | awk -F / '{print $3}')
echo "$PR"
echo "pr_number=pr-$PR" >> $GITHUB_ENV
# Build the Docker image
- name: Build Docker Image
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]'
run: |
docker build -t "$REGISTRY_HOSTNAME"/"$GAR_GOOGLE_PROJECT_ID"/"$GAR_REPOSITORY"/"$IMAGE":${{ env.pr_number }} -f _infra/docker/Dockerfile .
- name: Push dev image
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]'
run: |
docker push "$REGISTRY_HOSTNAME"/"$GAR_GOOGLE_PROJECT_ID"/"$GAR_REPOSITORY"/"$IMAGE":${{ env.pr_number }}
- name: template helm
if: github.actor != 'dependabot[bot]'
run: |
helm template $CHART_DIRECTORY

Expand Down Expand Up @@ -179,13 +184,14 @@ jobs:
echo "version=$(grep -E "appVersion:\s+" $CHART_DIRECTORY/Chart.yaml | cut -d" " -f2 | sed -r 's/"//g')" >> $GITHUB_ENV

- name: package helm
if: github.actor != 'dependabot[bot]'
run: |
echo HELM_VERSION=$(grep -E "version:\s+" $CHART_DIRECTORY/Chart.yaml | cut -d" " -f2 | sed -r 's/"//g') >> $GITHUB_ENV
helm dep up $CHART_DIRECTORY
helm package $CHART_DIRECTORY

- name: Publish dev Chart
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/main' && github.actor != 'dependabot[bot]'
run: |
mv $IMAGE-${{ env.HELM_VERSION }}.tgz $IMAGE-${{ env.pr_number }}.tgz
gsutil cp $IMAGE-*.tgz gs://$ARTIFACT_BUCKET/$IMAGE/
Expand Down
4 changes: 2 additions & 2 deletions _infra/helm/frontstage/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ type: application

# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.5.73
version: 2.5.74

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 2.5.73
appVersion: 2.5.74
Loading