forked from spritsail/alpine
Temporary 3.8 fix.
Waiting on https://github.com/docker-library/official-images/pull/4501
This commit is contained in:
parent
7853193403
commit
1ddb92853c
13
.drone.yml
13
.drone.yml
@ -4,7 +4,7 @@ pipeline:
|
||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
||||
repo: alpine-dev
|
||||
build_args:
|
||||
- ALPINE_TAG=${ALPINE_TAG%%,*}
|
||||
- ALPINE_TAG=3.8
|
||||
|
||||
test:
|
||||
image: docker
|
||||
@ -14,7 +14,7 @@ pipeline:
|
||||
|
||||
publish:
|
||||
image: spritsail/docker-publish
|
||||
when: { branch: [ master ], event: [ push, tag, deployment ] }
|
||||
when: { branch: [ 3.8 ], event: [ push, tag, deployment ] }
|
||||
volumes: [ '/var/run/docker.sock:/var/run/docker.sock' ]
|
||||
secrets: [ docker_username, docker_password, microbadger_token ]
|
||||
from: alpine-dev
|
||||
@ -25,12 +25,3 @@ pipeline:
|
||||
image: spritsail/notify
|
||||
when: { status: [ success, failure ] }
|
||||
secrets: [ webhook_url, notify_token ]
|
||||
|
||||
matrix:
|
||||
ALPINE_TAG:
|
||||
- 3.4
|
||||
- 3.5
|
||||
- 3.6
|
||||
- 3.7
|
||||
- 3.8,latest
|
||||
- edge
|
||||
|
12
Dockerfile
12
Dockerfile
@ -1,7 +1,17 @@
|
||||
ARG SU_EXEC_VER=v0.3
|
||||
ARG ALPINE_TAG=3.8
|
||||
|
||||
FROM alpine:$ALPINE_TAG
|
||||
FROM alpine:3.7 AS upgrade
|
||||
|
||||
ARG ALPINE_TAG
|
||||
RUN sed -i "s/3\.7/${ALPINE_TAG}/g" /etc/apk/repositories \
|
||||
&& apk --no-cache upgrade
|
||||
|
||||
# ~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=upgrade / /
|
||||
|
||||
ARG SU_EXEC_VER
|
||||
ARG ALPINE_TAG
|
||||
|
Loading…
Reference in New Issue
Block a user