mirror of
https://github.com/koalaman/shellcheck
synced 2025-08-22 14:23:53 -07:00
Merge efafc4b597
into 3785a08906
This commit is contained in:
commit
c41e1294ca
1 changed files with 5 additions and 0 deletions
|
@ -24,12 +24,17 @@ script:
|
|||
- rm -rf dist || true
|
||||
# Linux Docker image
|
||||
- docker build -t "$DOCKER_REPO:$TAG" .
|
||||
# Linux Docker Alpine image
|
||||
- sed -i 's|FROM scratch|FROM alpine:latest|' Dockerfile
|
||||
- docker build -t "$DOCKER_REPO:$TAG-alpine" .
|
||||
|
||||
after_success:
|
||||
- ./.prepare_deploy
|
||||
- docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
|
||||
- |-
|
||||
([ "$TRAVIS_BRANCH" == "master" ] || [ -n "$TRAVIS_TAG" ]) && docker push "$DOCKER_REPO:$TAG"
|
||||
- |-
|
||||
([ "$TRAVIS_BRANCH" == "master" ] || [ -n "$TRAVIS_TAG" ]) && docker push "$DOCKER_REPO:$TAG-alpine"
|
||||
|
||||
after_failure:
|
||||
- id
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue