Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
50 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
- name: build-pkg | ||
service: avirshup/docker-make | ||
command: sh -c 'cp -v /opt/DockerMake/dist/DockerMake-*.tar.gz /opt/distfiles/' | ||
|
||
- name: test | ||
type: serial | ||
services: | ||
- dmk-python2.7 | ||
- dmk-python3.5 | ||
- dmk-python3.6 | ||
- testenv-python2.7 | ||
- testenv-python3.5 | ||
- testenv-python3.6 | ||
steps: | ||
- command: py.test | ||
|
||
- command: sh -c "pip install /opt/distfiles/DockerMake-*.tar.gz && py.test" | ||
|
||
- name: deploy-dockerhub | ||
type: push | ||
service: dmk-deploy-img | ||
service: deploy-env | ||
tag: '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)((a|rc|b)(0|[1-9]\d*))?$' # PEP440 version tags | ||
image_name: avirshup/docker-make | ||
image_tag: "{{.Branch}}" | ||
registry: https://index.docker.io/v1 | ||
|
||
|
||
- name: deploy-pypi | ||
service: dmk-deploy-img | ||
command: deploy.sh | ||
service: deploy-env | ||
command: twine upload -u ${PYPI_USER} -p ${PYPI_PASSWORD} /opt/distfiles/DockerMake-${CI_BRANCH}.tar.gz | ||
tag: '^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)((a|rc|b)(0|[1-9]\d*))?$' # PEP440 version tags |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,2 @@ | ||
FROM python:3.6-alpine | ||
RUN mkdir -p /opt/dist | ||
RUN apk add --no-cache docker \ | ||
&& pip install twine | ||
ADD deploy.sh /usr/local/bin | ||
RUN chmod +x /usr/local/bin/deploy.sh | ||
RUN pip install twine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
ARG PYVERSION=3.6 | ||
FROM python:${PYVERSION}-alpine | ||
|
||
RUN apk add --no-cache curl git | ||
ENV DOCKERVERSION=17.12.0-ce | ||
RUN curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-${DOCKERVERSION}.tgz \ | ||
&& mv docker-${DOCKERVERSION}.tgz docker.tgz \ | ||
&& tar xzvf docker.tgz \ | ||
&& mv docker/docker /usr/local/bin \ | ||
&& rm -r docker docker.tgz | ||
|
||
RUN pip install pytest | ||
ADD test /opt/test | ||
ADD example /opt/example |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,5 +20,4 @@ | |
] | ||
}, | ||
install_requires=requirements, | ||
|
||
) |