Skip to content

Commit

Permalink
build-staging.yml: remove unnecessary code artifact steps
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Feb 20, 2024
1 parent 9908f0f commit f730479
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,6 @@ jobs:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}

- name: Get CodeArtifact Repository Authentication Token
run: |
TOKEN=$(aws codeartifact get-authorization-token \
--domain ${{ vars.CODEARTIFACT_DOMAIN }} \
--domain-owner ${{ steps.aws_auth.outputs.aws-account-id }} \
--region ${{ vars.AWS_REGION }} \
--query authorizationToken \
--output text)
echo "CODEARTIFACT_AUTH_TOKEN=$TOKEN" >> "$GITHUB_ENV"
- name: Get CodeArtifact Repository URL
run: |
REPO_URL=$(aws codeartifact get-repository-endpoint \
--domain ${{ vars.CODEARTIFACT_DOMAIN }} \
--repository ${{ vars.CODEARTIFACT_REPO }} \
--format maven \
--region ${{ vars.AWS_REGION }} \
--output text)
echo "CODEARTIFACT_REPO_URL=$REPO_URL" >> "$GITHUB_ENV"
- name: Build with Maven
run: mvn -B package --file pom.xml -DskipTests

Expand Down

0 comments on commit f730479

Please sign in to comment.