mirror of
https://github.com/pikvm/ustreamer.git
synced 2025-12-23 18:50:00 +00:00
Merge pull request #178 from tomaszduda23/github_registry
GitHub registry
This commit is contained in:
commit
17f54a7977
28
.github/workflows/docker-alpine-image.yaml
vendored
28
.github/workflows/docker-alpine-image.yaml
vendored
@ -14,12 +14,29 @@ jobs:
|
|||||||
-
|
-
|
||||||
name: Checkout
|
name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
-
|
||||||
|
name: Login to GitHub Container Registry
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Login to DockerHub Container Registry
|
||||||
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
-
|
-
|
||||||
name: Docker meta
|
name: Docker meta
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: pikvm/ustreamer
|
images: |
|
||||||
|
${{ secrets.DOCKERHUB_USERNAME }}/ustreamer,enable=${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
ghcr.io/${{ github.repository }},enable=${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: |
|
||||||
type=ref,event=tag
|
type=ref,event=tag
|
||||||
type=sha,format=long
|
type=sha,format=long
|
||||||
@ -51,16 +68,9 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
platforms: linux/arm64,linux/amd64,linux/arm/v7
|
platforms: linux/arm64,linux/amd64,linux/arm/v7
|
||||||
file: pkg/docker/Dockerfile.alpine
|
file: pkg/docker/Dockerfile.alpine
|
||||||
-
|
|
||||||
name: Login to DockerHub
|
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
||||||
-
|
-
|
||||||
name: Push
|
name: Push
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: steps.meta.outputs.tags != ''
|
||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user