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

ci: allow custom image tag #177

Merged
merged 10 commits into from
May 4, 2022
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
8 changes: 7 additions & 1 deletion .github/workflows/helm_upgrade_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
env_file:
required: true
type: string
image_tag:
required: false
type: string
secrets:
gcp_token:
required: true
Expand Down Expand Up @@ -46,6 +49,9 @@ jobs:
helm plugin install https://starkware-third-party.s3.us-east-2.amazonaws.com/k8s/helm-s3/helm-s3-v0.9.2.tar.gz
helm repo add starkware s3://starkware-third-party/helm-repo/charts
helm repo update
- name: Set image tag
id: get_image_tag
run: echo "::set-output name=tag::${{ inputs.image_tag || github.ref_name }}"
- name: Upgrade using helm upgrade command.
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -56,4 +62,4 @@ jobs:
--namespace=${{ inputs.namespace_name }} \
--values ${{ inputs.values_file}} \
--set-file configMap.frontend.envs=${{ inputs.env_file }} \
--set frontend.image.tag=${{ github.ref_name }}
--set frontend.image.tag=${{ steps.get_image_tag.outputs.tag }}
1 change: 1 addition & 0 deletions .github/workflows/push_frontend_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
namespace_name: starkgate-goerli
values_file: deployment/testing.yml
env_file: .env.testing
image_tag: ${{ github.ref_name }}-goerli
secrets:
gcp_token: ${{ secrets.STARKGATE_SA }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down