Skip to content

Commit aa85885

Browse files
committed
additionally push images to GHCR
1 parent 80a0baa commit aa85885

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/docker-image-release.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ jobs:
3535
username: ${{ secrets.DOCKERHUB_USERNAME }}
3636
password: ${{ secrets.DOCKERHUB_TOKEN }}
3737

38+
- name: Login to GitHub Container Registry
39+
uses: docker/login-action@v3
40+
with:
41+
registry: ghcr.io
42+
username: ${{ github.actor }}
43+
password: ${{ secrets.GITHUB_TOKEN }}
44+
3845
- name: Build and push Docker image
3946
uses: docker/build-push-action@v5
4047
id: build-and-push
@@ -43,7 +50,11 @@ jobs:
4350
platforms: linux/amd64,linux/arm/v7,linux/arm64
4451
push: true
4552
build-args: VERSION=${{ steps.get_tag.outputs.VERSION }}
46-
tags: docker.io/wollomatic/socket-proxy:${{ steps.get_tag.outputs.VERSION }},docker.io/wollomatic/socket-proxy:1
53+
tags: |
54+
docker.io/wollomatic/socket-proxy:${{ steps.get_tag.outputs.VERSION }}
55+
docker.io/wollomatic/socket-proxy:1
56+
ghcr.io/wollomatic/socket-proxy:${{ steps.get_tag.outputs.VERSION }}
57+
ghcr.io/wollomatic/socket-proxy:1
4758
4859
- name: Sign images for all platforms
4960
run: cosign sign --yes --key env://COSIGN_PRIVATE_KEY docker.io/wollomatic/socket-proxy:${{ steps.get_tag.outputs.VERSION }}@${{ steps.build-and-push.outputs.digest }}

0 commit comments

Comments
 (0)