Skip to content

Commit 8fd7675

Browse files
authored
Update build_and_push_image.yml
1 parent e7e55b4 commit 8fd7675

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/build_and_push_image.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ on:
88

99
env:
1010
IMAGE_NAME: relistenapi # <‑‑ repo/image name in the registry
11-
REGISTRY: 100.97.22.118:32000
11+
REGISTRY_DOMAIN: 100.97.22.118
12+
REGISTRY_PORT: 32000
1213
TAG: latest
1314

1415
jobs:
@@ -28,10 +29,18 @@ jobs:
2829
tags: tag:ci
2930
version: latest
3031

32+
- name: Set up Docker Buildx
33+
uses: docker/setup-buildx-action@v3
34+
with:
35+
config-inline: |
36+
[registry."${{ env.REGISTRY_DOMAIN }}"]
37+
http = true
38+
insecure = true
39+
3140
- name: Build and push image
3241
uses: docker/build-push-action@v5
3342
with:
3443
context: .
3544
platforms: linux/amd64 # x86_64
36-
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
45+
tags: ${{ env.REGISTRY_DOMAIN }}:${{ env.REGISTRY_PORT }}/${{ env.IMAGE_NAME }}:${{ env.TAG }}
3746
push: true

0 commit comments

Comments
 (0)