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

Promote GHA tweaks #1874

Merged
merged 1 commit into from
Aug 28, 2024
Merged
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
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