Skip to content

Commit

Permalink
feat: augmenting deploy tagging to account for branch, testing with c…
Browse files Browse the repository at this point in the history
…urrent
  • Loading branch information
voodooGQ committed Feb 6, 2024
1 parent d92bcda commit 59846fc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
branches:
- main
- develop
- PRODENG-1577/kube_deployment
jobs:
release_deploy:
name: Release and Deploy
Expand Down Expand Up @@ -84,8 +86,7 @@ jobs:
context: ./docs
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_DOCS }}:${{ steps.gitsha.outputs.value }}-release-staging
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_DOCS }}:${{ steps.gitsha.outputs.value }}-release-production
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_DOCS }}:${{ steps.gitsha.outputs.value }}-release-${{ github.ref == "refs/heads/main" && 'production' || 'staging' }}
- name: Build and push storybook
uses: docker/build-push-action@v2
Expand All @@ -100,8 +101,7 @@ jobs:
context: ./packages/sage-react/
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_STORYBOOK }}:${{ steps.gitsha.outputs.value }}-release-staging
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_STORYBOOK }}:${{ steps.gitsha.outputs.value }}-release-production
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_STORYBOOK }}:${{ steps.gitsha.outputs.value }}-release-${{ github.ref == "refs/heads/main" && 'production' || 'staging' }}
- name: Build and push sassdocs
uses: docker/build-push-action@v2
Expand All @@ -116,5 +116,4 @@ jobs:
context: ./packages/sage-assets/
push: true
tags: |
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_SASSDOCS }}:${{ steps.gitsha.outputs.value }}-release-staging
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_SASSDOCS }}:${{ steps.gitsha.outputs.value }}-release-production
${{ steps.login-ecr.outputs.registry }}/${{ secrets.ECR_REPOSITORY_SAGE_SASSDOCS }}:${{ steps.gitsha.outputs.value }}-release-${{ github.ref == "refs/heads/main" && 'production' || 'staging' }}

0 comments on commit 59846fc

Please sign in to comment.