Add short sha env
This commit is contained in:
parent
490b465936
commit
ed3ea0e62c
8
.github/workflows/ci.yaml
vendored
8
.github/workflows/ci.yaml
vendored
@ -127,8 +127,8 @@ jobs:
|
|||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Checkout dependencies
|
- name: Checkout dependencies
|
||||||
uses: ./.github/actions/deps-setup
|
uses: ./.github/actions/deps-setup
|
||||||
- name: Test
|
- name: Build image
|
||||||
run: make docker-build
|
run: make docker-build-notest
|
||||||
|
|
||||||
release:
|
release:
|
||||||
if: github.ref_type == 'tag'
|
if: github.ref_type == 'tag'
|
||||||
@ -149,6 +149,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
- name: Set short SHA
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "DOCKER_SHORT_TAG=${${{ github.sha }}:0:7}" >> $GITHUB_ENV
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
uses: goreleaser/goreleaser-action@v5
|
uses: goreleaser/goreleaser-action@v5
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user