This repository has been archived by the owner on Oct 30, 2023. It is now read-only.
Updated documentation of the triage portal #153
Workflow file for this run
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: Publish Docker Containers to Registries | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
build-and-push: | |
runs-on: ubuntu-latest | |
name: Build & Push (${{ matrix.platform }}) | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
matrix: | |
platform: [ "linux/amd64", "linux/arm64" ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up QEMU | |
if: matrix.platform == 'linux/arm64' | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
id: buildx | |
with: | |
version: latest | |
platforms: ${{ matrix.platform }} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and Push to GitHub Container Registry | |
uses: docker/[email protected] | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
push: true | |
files: docker-compose.yml, docker-compose.ghcr.yml | |
# - name: Login to Azure Container Registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: omegatriagecontainerreg.azurecr.io | |
# username: ${{ secrets.AZURE_CLIENT_ID }} | |
# password: ${{ secrets.AZURE_CLIENT_SECRET }} | |
# | |
# - name: Build and Push to Azure Container Registry | |
# uses: docker/[email protected] | |
# with: | |
# builder: ${{ steps.buildx.outputs.name }} | |
# push: true | |
# files: docker-compose.yml, docker-compose.azure.yml |