Skip to content

Commit be3382b

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

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,19 @@ jobs:
7373
sharevb/it-tools:latest
7474
ghcr.io/${{ github.repository_owner }}/it-tools:latest
7575
76+
- name: Build and push (BASE_URL)
77+
uses: docker/build-push-action@v5
78+
with:
79+
context: .
80+
file: ./Dockerfile
81+
build-args: |
82+
"BASE_URL='/it-tools/'"
83+
platforms: linux/amd64,linux/arm64
84+
push: true
85+
tags: |
86+
sharevb/it-tools:baseurl-it-tools
87+
ghcr.io/sharevb/it-tools:baseurl-it-tools
88+
7689
7790
# Optionally log out
7891
- name: Log out from GitHub Container Registry

.github/workflows/sharevb-releases.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,21 @@ jobs:
4747
ghcr.io/sharevb/it-tools:latest
4848
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}
4949
50+
- name: Build and push (BASE_URL)
51+
uses: docker/build-push-action@v5
52+
with:
53+
context: .
54+
file: ./Dockerfile
55+
build-args: |
56+
"BASE_URL='/it-tools/'"
57+
platforms: linux/amd64,linux/arm64
58+
push: true
59+
tags: |
60+
sharevb/it-tools:baseurl-it-tools
61+
sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
62+
ghcr.io/sharevb/it-tools:baseurl-it-tools
63+
ghcr.io/sharevb/it-tools:${{ env.RELEASE_VERSION}}-baseurl-it-tools
64+
5065
github-release:
5166
runs-on: ubuntu-latest
5267
needs: docker-release

0 commit comments

Comments
 (0)