Skip to content

Commit

Permalink
push to ghcr and docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
andlinger committed Jun 2, 2023
1 parent e10c455 commit f469f28
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to container registry
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to GitHub container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
Expand All @@ -24,5 +30,12 @@ jobs:
with:
context: ./6.0
platforms: linux/amd64,linux/arm64
tags: instant-solutions/mongo:6.0.6,instant-solutions/mongo:6.0,instant-solutions/mongo:6
push: true
tags: i15s/mongo:6.0.6,i15s/mongo:6.0,i15s/mongo:6
push: true
- name: Push image to GitHub container registry
run: |
docker buildx imagetools create \
--tag ghcr.io/instant-solutions/mongo:6.0.6 \
--tag ghcr.io/instant-solutions/mongo:6.0 \
--tag ghcr.io/instant-solutions/mongo:6 \
i15s/mongo:6.0.6

0 comments on commit f469f28

Please sign in to comment.