Skip to content

Commit

Permalink
push to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Feb 9, 2024
1 parent fc8a02d commit 605e151
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GHCR (GitHub Packages)
uses: docker/login-action@v2
with:
Expand All @@ -43,16 +49,22 @@ jobs:
password: ${{ secrets.DATATAILOR_REGISTRY_PWD }}

- name: Build and push ghcr.io
id: docker_build
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
push: true
tags: "ghcr.io/bnosac/blackbar-${{ matrix.config.tag }}:latest"
file: ${{ matrix.config.dockerfile }}

- name: Build and push Dockerhub
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
push: true
tags: "bnosac/blackbar-${{ matrix.config.tag }}:latest"
file: ${{ matrix.config.dockerfile }}

- name: Build and push registry.datatailor.be
id: docker_build
uses: docker/build-push-action@v5
with:
context: ${{ matrix.config.context }}
Expand Down

0 comments on commit 605e151

Please sign in to comment.