mirror of
https://github.com/parrazam/radicale-docker.git
synced 2024-11-22 05:23:25 +01:00
Add multi-registry push to Snapshot images
This commit is contained in:
parent
9b245739da
commit
7e0cd0a378
1 changed files with 10 additions and 2 deletions
12
.github/workflows/build-snapshot.yml
vendored
12
.github/workflows/build-snapshot.yml
vendored
|
@ -37,18 +37,26 @@ jobs:
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
- name: Log into ${{ env.GH_REPO }} registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.GH_REPO }}
|
registry: ${{ env.GH_REPO }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Log into DockerHub registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v3
|
uses: docker/metadata-action@v3
|
||||||
with:
|
with:
|
||||||
images: ${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
|
images: |
|
||||||
|
${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
|
||||||
|
${{ env.IMAGE_NAME }}
|
||||||
|
|
||||||
- name: Build image and push snapshot to GitHub Container Registry
|
- name: Build image and push snapshot to GitHub Container Registry
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
|
|
Loading…
Reference in a new issue