Commit 6d4ca0a1 authored by ethfoo's avatar ethfoo
Browse files

Fix(chore): invalid tag when build image

No related merge requests found
Showing with 10 additions and 14 deletions
+10 -14
......@@ -31,19 +31,15 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: crazy-max/ghaction-docker-buildx@v3
with:
buildx-version: latest
qemu-version: latest
- name: get version
id: get_version
run: echo ${GITHUB_SHA::8} && echo ${GITHUB_REF#refs/heads/}
- name: get branch
id: get_branch
run: echo ${GITHUB_REPOSITORY#*/}
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build and push
id: docker_buildx
run: docker buildx build --platform linux/amd64,linux/arm64 . --push -t ${{ secrets.DOCKERHUB_USERNAME }}/${GITHUB_REPOSITORY#*/}:$TAGS
env:
TAGS: ${{ steps.meta.outputs.tags }}
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment