Skip to content

Commit

Permalink
Merge pull request #1874 from salesforcecli/ew/promote
Browse files Browse the repository at this point in the history
Promote GHA tweaks
  • Loading branch information
iowillhoit authored Aug 28, 2024
2 parents 291554e + eef6a63 commit b707fac
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,11 @@ jobs:
- name: Promote Docker images
run: |
docker pull "salesforce/cli:$NEEDS_GET_PACKAGE_INFO_VERSION-slim"
docker tag "salesforce/cli:$NEEDS_GET_PACKAGE_INFO_VERSION-slim salesforce/cli:$INPUTS_NEW_CHANNEL-slim"
docker tag "salesforce/cli:$NEEDS_GET_PACKAGE_INFO_VERSION-slim" "salesforce/cli:$INPUTS_NEW_CHANNEL-slim"
docker push "salesforce/cli:$INPUTS_NEW_CHANNEL-slim"
docker pull "salesforce/cli:$NEEDS_GET_PACKAGE_INFO_VERSION-full"
docker tag "salesforce/cli:$NEEDS_GET_PACKAGE_INFO_VERSION-full salesforce/cli:$INPUTS_NEW_CHANNEL-full"
docker tag "salesforce/cli:$NEEDS_GET_PACKAGE_INFO_VERSION-full" "salesforce/cli:$INPUTS_NEW_CHANNEL-full"
docker push "salesforce/cli:$INPUTS_NEW_CHANNEL-full"
env:
NEEDS_GET_PACKAGE_INFO_VERSION: ${{ needs.get-package-info.outputs.version }}
Expand Down Expand Up @@ -180,14 +180,7 @@ jobs:
- uses: salesforcecli/github-workflows/.github/actions/yarnInstallWithRetries@main

- name: Promote with oclif
run: yarn promote --version "$NEEDS_GET_PACKAGE_INFO_VERSION" \
--sha "$NEEDS_GET_PACKAGE_INFO_SHA" \
--channel "$NEEDS_BUILD_S3_CHANNEL_S3_NEW_CHANNEL" \
--max-age 300 \
--macos \
--win \
--indexes \
--xz
run: yarn promote --version "$NEEDS_GET_PACKAGE_INFO_VERSION" --sha "$NEEDS_GET_PACKAGE_INFO_SHA" --channel "$NEEDS_BUILD_S3_CHANNEL_S3_NEW_CHANNEL" --max-age 300 --macos --win --indexes --xz
env:
NEEDS_GET_PACKAGE_INFO_VERSION: ${{ needs.get-package-info.outputs.version }}
NEEDS_GET_PACKAGE_INFO_SHA: ${{ needs.get-package-info.outputs.sha }}
Expand Down

0 comments on commit b707fac

Please sign in to comment.