mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-20 20:25:18 +02:00
⚗️ Attempts ACR container push
This commit is contained in:
parent
7c9b4ec669
commit
4be9e1f320
16
.github/workflows/docker-image.yml
vendored
16
.github/workflows/docker-image.yml
vendored
@ -1,3 +1,5 @@
|
|||||||
|
# Builds, scans and tests the multi-architecture docker image
|
||||||
|
# Then releases it to the DockerHub, GHCR and Quay registries
|
||||||
name: 🐳 Build + Publish Multi-Platform Image
|
name: 🐳 Build + Publish Multi-Platform Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@ -31,9 +33,10 @@ jobs:
|
|||||||
images: |
|
images: |
|
||||||
${{ env.DH_IMAGE }}
|
${{ env.DH_IMAGE }}
|
||||||
ghcr.io/${{ env.GH_IMAGE }}
|
ghcr.io/${{ env.GH_IMAGE }}
|
||||||
|
${{ secrets.ACR_SERVER }}/${{ secrets.ACR_USERNAME }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=tag,suffix={{tag}}
|
type=ref,event=tag,prefix=release-,suffix={{tag}}
|
||||||
type=semver,pattern={{raw}},value=${{ steps.package-version.outputs.version }},prefix=release-
|
type=semver,pattern={{raw}},value=${{ steps.package-version.outputs.version }}
|
||||||
labels: |
|
labels: |
|
||||||
maintainer=Lissy93
|
maintainer=Lissy93
|
||||||
org.opencontainers.image.title=Dashy
|
org.opencontainers.image.title=Dashy
|
||||||
@ -61,13 +64,20 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: 🔑 Login to Azure Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ${{ secrets.ACR_SERVER }}
|
||||||
|
username: ${{ secrets.ACR_USERNAME }}
|
||||||
|
password: ${{ secrets.ACR_PASSWORD }}
|
||||||
|
|
||||||
- name: ⚒️ Build and push
|
- name: ⚒️ Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./docker/Dockerfile-multi-arch
|
file: ./docker/Dockerfile-multi-arch
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
push: true
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user