Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
fcb6198a
Unverified
Commit
fcb6198a
authored
Aug 21, 2020
by
Pedro Lamas
Browse files
More updated following PR comments
parent
410d0bc1
Changes
2
Show whitespace changes
Inline
Side-by-side
.github/workflows/dockerhub.yml
View file @
fcb6198a
...
@@ -3,8 +3,7 @@ name: Build DockerHub
...
@@ -3,8 +3,7 @@ name: Build DockerHub
on
:
on
:
push
:
push
:
branches
:
branches
:
-
master
-
'
*'
-
dev
tags
:
tags
:
-
'
*'
-
'
*'
...
@@ -28,22 +27,20 @@ jobs:
...
@@ -28,22 +27,20 @@ jobs:
DOCKER_IMAGE=neilpang/acme.sh
DOCKER_IMAGE=neilpang/acme.sh
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $GITHUB_REF == refs/tags/* ]]; then
BRANCH_TAG=${GITHUB_REF#refs/tags/}
DOCKER_IMAGE_TAG=${GITHUB_REF#refs/tags/}
AUTO_UPGRADE=1
fi
fi
if [[ $GITHUB_REF == refs/heads/* ]]; then
if [[ $GITHUB_REF == refs/heads/* ]]; then
BRANCH
_TAG=${GITHUB_REF#refs/heads/}
DOCKER_IMAGE
_TAG=${GITHUB_REF#refs/heads/}
if [[ $
BRANCH
_TAG == master ]]; then
if [[ $
DOCKER_IMAGE
_TAG == master ]]; then
BRANCH
_TAG=latest
DOCKER_IMAGE
_TAG=latest
AUTO_UPGRADE=1
AUTO_UPGRADE=1
fi
fi
fi
fi
docker buildx build \
docker buildx build \
--tag ${DOCKER_IMAGE}:${BRANCH_TAG} \
--tag ${DOCKER_IMAGE}:${DOCKER_IMAGE_TAG} \
--tag ${DOCKER_IMAGE}:${GITHUB_SHA} \
--output "type=image,push=true" \
--output "type=image,push=true" \
--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 .
Dockerfile
View file @
fcb6198a
...
@@ -15,7 +15,7 @@ RUN apk update -f \
...
@@ -15,7 +15,7 @@ RUN apk update -f \
ENV
LE_CONFIG_HOME /acme.sh
ENV
LE_CONFIG_HOME /acme.sh
ENV
AUTO_UPGRADE
1
ARG
AUTO_UPGRADE
=
1
#Install
#Install
ADD
./ /install_acme.sh/
ADD
./ /install_acme.sh/
...
...
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