Revert "Revert "Bump certifi from 2020.4.5.1 to 2023.7.22"" #81
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: Build image | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
main: | |
runs-on: ubuntu-20.04 | |
env: | |
AZURE_CONTAINER_REGISTRY_URL: hmctspublic.azurecr.io | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v3 | |
- name: Setup Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Login to Azure Container Repository | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.AZURE_CONTAINER_REGISTRY_URL }} | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_PASSWORD }} | |
- name: Generate build ID | |
id: prep | |
run: | | |
sha=${GITHUB_SHA::8} | |
ts=$(date +%s) | |
echo "::set-output name=BUILD_ID::${sha}-${ts}" | |
- name: Build and Push | |
id: docker_build | |
uses: docker/build-push-action@v4 | |
with: | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
tags: ${{ env.AZURE_CONTAINER_REGISTRY_URL }}/rpe/response-api:pr-${{ steps.prep.outputs.BUILD_ID }} |