Update ci.yml
This commit is contained in:
parent
3da07ce816
commit
bcbbfc5f52
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -28,6 +28,11 @@ jobs:
|
|||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Set tags name
|
||||||
|
env:
|
||||||
|
TAGNAME: ${{ env.TEST_TAG }}-${{ matrix.platform }}
|
||||||
|
run: echo "TAGNAME=${TAGNAME/\//-}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
@ -35,12 +40,12 @@ jobs:
|
|||||||
context: .
|
context: .
|
||||||
push: false
|
push: false
|
||||||
load: true
|
load: true
|
||||||
tags: ${{ env.TEST_TAG }}-${{ matrix.platform }}
|
tags: ${{ env.TAGNAME }}
|
||||||
cache-from: type=local,src=/tmp/.buildx-cache
|
cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
cache-to: type=local,dest=/tmp/.buildx-cache-new
|
||||||
|
|
||||||
- name: Test Docker image
|
- name: Test Docker image
|
||||||
run: docker run --rm ${{ env.TEST_TAG }}-${{ matrix.platform }} -h
|
run: docker run --rm ${{ env.TAGNAME }} -h
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
Loading…
Reference in New Issue
Block a user