fix docker image user agent (#7582)
This commit is contained in:
5
.github/workflows/build-docker-image.yml
vendored
5
.github/workflows/build-docker-image.yml
vendored
@@ -12,6 +12,9 @@ jobs:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v1
|
||||
|
||||
- name: Set Git Short SHA
|
||||
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
@@ -19,4 +22,4 @@ jobs:
|
||||
push: false
|
||||
tags: shieldsio/shields:pr-validation
|
||||
build-args: |
|
||||
version=${GITHUB_SHA::7}
|
||||
version=${{ env.SHORT_SHA }}
|
||||
|
||||
5
.github/workflows/publish-docker-next.yml
vendored
5
.github/workflows/publish-docker-next.yml
vendored
@@ -20,6 +20,9 @@ jobs:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
|
||||
- name: Set Git Short SHA
|
||||
run: echo "SHORT_SHA=${GITHUB_SHA::7}" >> $GITHUB_ENV
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
@@ -27,4 +30,4 @@ jobs:
|
||||
push: true
|
||||
tags: shieldsio/shields:next
|
||||
build-args: |
|
||||
version=${GITHUB_SHA::7}
|
||||
version=${{ env.SHORT_SHA }}
|
||||
|
||||
Reference in New Issue
Block a user