Release Single Image #74
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Single Image | |
on: | |
workflow_dispatch: | |
inputs: | |
pipeline-argument: | |
description: 'Argument to pass to pipeline' | |
required: true | |
release-key: | |
description: 'Corresponding release.json key' | |
required: true | |
jobs: | |
release-single-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10.4' | |
architecture: 'x64' | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ hashFiles('requirements.txt') }} | |
- name: Install Python Dependencies | |
run: pip install -r requirements.txt | |
- name: Determine if release is needed | |
id: release_status | |
run: | | |
OUTPUT=$(scripts/ci/determine_required_releases.py ${{ github.event.inputs.release-key }}) | |
echo "::set-output name=OUTPUT::$OUTPUT" | |
- name: Login to Quay.io | |
uses: docker/login-action@v1 | |
with: | |
registry: quay.io | |
username: ${{ secrets.QUAY_USERNAME }} | |
password: ${{ secrets.QUAY_ROBOT_TOKEN }} | |
# template: .action_templates/steps/set-up-qemu.yaml | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Publish Image To Quay | |
#if: steps.release_status.outputs.OUTPUT == 'unreleased' | |
run: python pipeline.py --image-name ${{ github.event.inputs.pipeline-argument }} --release true | |
env: | |
MONGODB_COMMUNITY_CONFIG: "${{ github.workspace }}/scripts/ci/config.json" | |
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}" | |
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}" |