Skip to content

Commit

Permalink
Alpine Linux 3.9
Browse files Browse the repository at this point in the history
Use Alpine Linux for building and testing packages.
  • Loading branch information
sgerrand committed Feb 11, 2019
1 parent 04296d1 commit fa6dd73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ jobs:
- run:
name: Create Docker volumes
command: |
docker create --name input --volume /home/builder/package alpine:3.8 /bin/true
docker create --name input --volume /home/builder/package alpine:3.9 /bin/true
docker cp . input:/home/builder/package/
docker create --name output --volume /packages alpine:3.8 /bin/true
docker create --name output --volume /packages alpine:3.9 /bin/true
docker cp sgerrand.rsa.pub output:/packages/
- run:
name: Build packages
command: docker run --env RSA_PRIVATE_KEY="$RSA_PRIVATE_KEY" --env RSA_PRIVATE_KEY_NAME="sgerrand.rsa" --volumes-from input --volumes-from output sgerrand/alpine-abuild:v7
command: docker run --env RSA_PRIVATE_KEY="$RSA_PRIVATE_KEY" --env RSA_PRIVATE_KEY_NAME="sgerrand.rsa" --volumes-from input --volumes-from output sgerrand/alpine-abuild:3.9
- run:
name: Test package installation
command: docker run --volumes-from output alpine:3.8 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk"
command: docker run --volumes-from output alpine:3.9 sh -c "cp /packages/sgerrand.rsa.pub /etc/apk/keys/ && apk -U add --no-progress --upgrade /packages/builder/x86_64/*.apk"
- run:
name: Extract packages
command: |
Expand Down

0 comments on commit fa6dd73

Please sign in to comment.