Skip to content

Commit 0ac7386

Browse files
committed
feat(Docker): publish an image with BASE_URL=/it-tools/
1 parent 4839768 commit 0ac7386

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

.github/workflows/sharevb-docker-realease.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,19 @@ jobs:
6262
- name: Set up Docker Buildx
6363
uses: docker/setup-buildx-action@v3
6464

65+
- name: Build and push (BASE_URL)
66+
uses: docker/build-push-action@v5
67+
with:
68+
context: .
69+
file: ./Dockerfile
70+
build-args: |
71+
"BASE_URL=/it-tools/"
72+
platforms: linux/amd64,linux/arm64
73+
push: true
74+
tags: |
75+
sharevb/it-tools:baseurl-it-tools
76+
ghcr.io/sharevb/it-tools:baseurl-it-tools
77+
6578
- name: Build and push
6679
uses: docker/build-push-action@v5
6780
with:
@@ -73,7 +86,6 @@ jobs:
7386
sharevb/it-tools:latest
7487
ghcr.io/${{ github.repository_owner }}/it-tools:latest
7588
76-
7789
# Optionally log out
7890
- name: Log out from GitHub Container Registry
7991
run: docker logout ghcr.io

.github/workflows/sharevb-releases.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@ jobs:
3434
- name: Set up Docker Buildx
3535
uses: docker/setup-buildx-action@v3
3636

37+
- name: Build and push (BASE_URL)
38+
uses: docker/build-push-action@v5
39+
with:
40+
context: .
41+
file: ./Dockerfile
42+
build-args: |
43+
"BASE_URL=/it-tools/"
44+
platforms: linux/amd64,linux/arm64
45+
push: true
46+
tags: |
47+
sharevb/it-tools:baseurl-it-tools
48+
sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
49+
ghcr.io/sharevb/it-tools:baseurl-it-tools
50+
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
51+
3752
- name: Build and push
3853
uses: docker/build-push-action@v5
3954
with:

0 commit comments

Comments
 (0)