Skip to content

Commit

Permalink
chore: change container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallhillCZ committed Nov 27, 2023
1 parent 70e42fc commit 2410040
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the updated source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3

- name: Login to registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build image and push it to DockerHub
uses: docker/build-push-action@v4
- name: Build image and push it to registry
uses: docker/build-push-action@v5
with:
build-args: NG_CONFIGURATION=production
push: true
context: .
tags: "otevrenadatamfcr/opendata-portal:latest"
tags: "ghcr.io/${{ github.repository_owner }}/opendata-portal:latest"
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 2410040

Please sign in to comment.