Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: deploy versions with alpine 3.14 #103

Merged
merged 3 commits into from
Nov 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ addons:
- docker-ce

install:
- echo "$DOCKER_PWD" | docker login -u "$DOCKER_USER" --password-stdin
- pip install pipenv
- pipenv sync --dev

Expand All @@ -20,7 +19,7 @@ script:
- pipenv run pytest -v

deploy:
# Deploy tag
# Deploy tag except "latest"
- provider: script
on:
tags: true
Expand Down
12 changes: 8 additions & 4 deletions ci/build-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -eo pipefail

# Login to Docker
echo "$DOCKER_PWD" | docker login -u "$DOCKER_USER" --password-stdin

# Require to build docker image of other architectures
docker run --rm --privileged multiarch/qemu-user-static:register --reset

Expand All @@ -16,13 +19,14 @@ else
DOCKER_TAG="$TRAVIS_TAG"
fi

archs=(amd64 386 arm arm64)
for arch in "${archs[@]}"
do
case "$arch" in
amd64 ) base_image="balenalib/amd64-alpine:3.10" ;;
i386 ) base_image="balenalib/i386-alpine:3.10" ;;
arm ) base_image="balenalib/armv7hf-alpine:3.10" ;;
arm64 ) base_image="balenalib/aarch64-alpine:3.10" ;;
amd64 ) base_image="alpine:3.14" ;;
i386 ) base_image="balenalib/i386-alpine:3.14" ;;
arm ) base_image="balenalib/armv7hf-alpine:3.14" ;;
arm64 ) base_image="balenalib/aarch64-alpine:3.14" ;;
esac

sed "1cFROM $base_image" Dockerfile > "Dockerfile.$arch"
Expand Down