mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-31 05:43:48 +03:00
Fixed how docker credentials are read from secrets
This commit is contained in:
parent
a32651aab3
commit
a7a69506a0
2 changed files with 2 additions and 2 deletions
2
.github/workflows/docker-image-build.yml
vendored
2
.github/workflows/docker-image-build.yml
vendored
|
@ -18,5 +18,7 @@ jobs:
|
||||||
uses: crazy-max/ghaction-docker-buildx@v1
|
uses: crazy-max/ghaction-docker-buildx@v1
|
||||||
with:
|
with:
|
||||||
buildx-version: latest
|
buildx-version: latest
|
||||||
|
- name: Login to docker hub
|
||||||
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||||
- name: Build the image
|
- name: Build the image
|
||||||
run: bash ./docker/build
|
run: bash ./docker/build
|
||||||
|
|
|
@ -6,8 +6,6 @@ PLATFORMS="linux/arm/v7,linux/arm64/v8,linux/amd64"
|
||||||
# PLATFORMS="linux/amd64"
|
# PLATFORMS="linux/amd64"
|
||||||
DOCKER_IMAGE="shlinkio/lab"
|
DOCKER_IMAGE="shlinkio/lab"
|
||||||
|
|
||||||
echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
|
|
||||||
|
|
||||||
# If ref is not develop, then this is a tag. Build that docker tag and also "stable"
|
# If ref is not develop, then this is a tag. Build that docker tag and also "stable"
|
||||||
if [[ "$GITHUB_REF" != *"develop"* ]]; then
|
if [[ "$GITHUB_REF" != *"develop"* ]]; then
|
||||||
TAGS="-t ${DOCKER_IMAGE}:${GITHUB_REF#?}"
|
TAGS="-t ${DOCKER_IMAGE}:${GITHUB_REF#?}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue