Skip to content

Add support for additional cloud credentials based on region (#181) #352

Add support for additional cloud credentials based on region (#181)

Add support for additional cloud credentials based on region (#181) #352

Workflow file for this run

name: Publish Docker Images
on:
push:
branches: ["main"]
tags: ["*"]
pull_request:
branches: ["main"]
# Kill existing jobs
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
REGISTRY: ghcr.io
IMAGE_NAME: mill1000/msmart-ng
PLATFORMS: linux/amd64,linux/arm64,linux/arm/v7
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
with:
# History/tags required to generate version info
fetch-depth: 0
- uses: docker/metadata-action@v5
id: meta
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Generate tags for latest commit, version tags and PRs
tags: |
type=edge
type=pep440,pattern={{version}}
type=ref,event=pr
- uses: docker/setup-qemu-action@v3
with:
platforms: ${{ env.PLATFORMS }}
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/build-push-action@v5
with:
context: .
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}