Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
abc62b93
Unverified
Commit
abc62b93
authored
Aug 21, 2020
by
Pedro Lamas
Browse files
more
parent
6fbf33c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/dockerhub.yml
View file @
abc62b93
...
@@ -26,12 +26,25 @@ jobs:
...
@@ -26,12 +26,25 @@ jobs:
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
-
name
:
build and push the image
-
name
:
build and push the image
run
:
|
run
:
|
DOCKER_IMAGE_TAG=$(echo ${GITHUB_REF#refs/heads/} | sed 's/^master$/latest/')
DOCKER_IMAGE=ei99070/acme.sh
[ "$DOCKER_IMAGE" == "latest" ] && AUTO_UPGRADE="1" || AUTO_UPGRADE=""
if [[ $GITHUB_REF == refs/tags/* ]]; then
BRANCH_TAG=${GITHUB_REF#refs/tags/}
AUTO_UPGRADE=1
fi
if [[ $GITHUB_REF == refs/heads/* ]]; then
BRANCH_TAG=${GITHUB_REF#refs/heads/}
if [[ $BRANCH_TAG == master ]]; then
BRANCH_TAG=latest
AUTO_UPGRADE=1
fi
fi
docker buildx build \
docker buildx build \
--tag ${DOCKER_IMAGE}:${BRANCH_TAG} \
--tag ${DOCKER_IMAGE}:${GITHUB_SHA} \
--output "type=image,push=true" \
--output "type=image,push=true" \
--tag ei99070/acme.sh:${DOCKER_IMAGE_TAG} \
--tag ei99070/acme.sh:${GITHUB_SHA} \
--build-arg AUTO_UPGRADE=${AUTO_UPGRADE} \
--build-arg AUTO_UPGRADE=${AUTO_UPGRADE} \
--platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .
--platform linux/arm64/v8,linux/amd64,linux/arm/v6,linux/arm/v7,linux/386 .
Write
Preview
Markdown
is supported
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