Skip to content

Commit 4be1735

Browse files
change to new docker registry
1 parent 4e46e64 commit 4be1735

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/docker-publish.yaml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,6 @@ on:
1313
pull_request:
1414
branches: [ "main" ]
1515

16-
env:
17-
# Use docker.io for Docker Hub if empty
18-
REGISTRY: ghcr.io
19-
# github.repository as <account>/<repo>
20-
IMAGE_NAME: ${{ github.repository }}
21-
2216
jobs:
2317
build:
2418
runs-on: ubuntu-latest
@@ -31,37 +25,37 @@ jobs:
3125

3226
steps:
3327
- name: Checkout repository
34-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
3529

3630
# Set up BuildKit Docker container builder to be able to build
3731
# multi-platform images and export cache
3832
# https://github.com/docker/setup-buildx-action
3933
- name: Set up Docker Buildx
40-
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0
34+
uses: docker/setup-buildx-action@v3
4135

4236
# Login against a Docker registry except on PR
4337
# https://github.com/docker/login-action
4438
- name: Log into registry ${{ env.REGISTRY }}
4539
if: github.event_name != 'pull_request'
46-
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
40+
uses: docker/login-action@v3
4741
with:
48-
registry: docker.ethquokkaops.io
42+
registry: ${{ vars.DOCKER_REGISTRY }}
4943
username: ${{ secrets.DOCKER_REGISTRY_USER }}
5044
password: ${{ secrets.DOCKER_REGISTRY_SECRET }}
5145

5246
# Extract metadata (tags, labels) for Docker
5347
# https://github.com/docker/metadata-action
5448
- name: Extract Docker metadata
5549
id: meta
56-
uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 # v5.0.0
50+
uses: docker/metadata-action@v5
5751
with:
58-
images: docker.ethquokkaops.io/ethquokkaops/github-actions-autoscaler/backend
52+
images: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/
5953

6054
# Build and push Docker image with Buildx (don't push on PR)
6155
# https://github.com/docker/build-push-action
6256
- name: Build and push Docker image
6357
id: build-and-push
64-
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0
58+
uses: docker/build-push-action@v5
6559
with:
6660
context: .
6761
push: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)