Browse Source

Generate release tag in staging pipeline entrypoint

cldc-2563-aws-production-pipeline-backup
Sam Seed 1 year ago
parent
commit
4e0762f551
  1. 13
      .github/workflows/staging_pipeline.yml

13
.github/workflows/staging_pipeline.yml

@ -15,10 +15,23 @@ defaults:
shell: bash shell: bash
jobs: jobs:
test:
name: Test
runs-on: ubuntu-latest
outputs:
releasetag: ${{ steps.latestrelease.outputs.releasetag }}
steps:
- name: Get latest release with tag
id: latestrelease
run: |
echo "releasetag=$(curl -s https://api.github.com/repos/${REPO_URL}/releases/latest | jq '.tag_name' | sed 's/\"//g')" >> $GITHUB_OUTPUT
aws_deploy: aws_deploy:
name: AWS Deploy name: AWS Deploy
if: github.ref == 'refs/heads/cldc-2563-aws-production-pipeline' if: github.ref == 'refs/heads/cldc-2563-aws-production-pipeline'
# needs: [lint, test, feature_test, audit] # needs: [lint, test, feature_test, audit]
needs: test
uses: ./.github/workflows/aws_deploy.yml uses: ./.github/workflows/aws_deploy.yml
with: with:
aws_account_id: 977287343304 aws_account_id: 977287343304

Loading…
Cancel
Save