Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Loggie
Commits
6d4ca0a1
Commit
6d4ca0a1
authored
3 years ago
by
ethfoo
Browse files
Options
Download
Email Patches
Plain Diff
Fix(chore): invalid tag when build image
parent
486f5e11
release-v1.2
v1.2.4
v1.2.3
v1.2.2
v1.2.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/build-docker-image.yml
+10
-14
.github/workflows/build-docker-image.yml
with
10 additions
and
14 deletions
+10
-14
.github/workflows/build-docker-image.yml
+
10
-
14
View file @
6d4ca0a1
...
...
@@ -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
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help