Skip to content

Promote Binaries

Promote Binaries #3334

name: Promote Binaries
on:
workflow_dispatch:
inputs:
existing_tag:
description: 'The existing tag/s3 subfolder of the binaries'
required: true
type: string
new_tag:
description: 'The new tag/s3 subfolder of the binaries'
required: true
type: string
aws_region:
description: 'The AWS region where the bucket is defined'
required: false
type: string
default: us-west-2
tracker_hash:
description: '[Internal usage] Used for tracking workflow job status within Meta infra'
required: false
type: str
env:
REGISTRY: ghcr.io
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v2
- name: Print Tracker Hash
run: echo ${{ github.event.inputs.tracker_hash}}
- uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
aws-region: ${{ github.event.inputs.aws_region }}
- name: Promote Binaries
run: |
./promote_scripts/promote_binaries.sh ${{ github.event.inputs.existing_tag }} ${{ github.event.inputs.new_tag }} < <(yes 'yes')