mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-21 13:40:39 +00:00
refactor: cleanup docker setup (#9)
This commit is contained in:
parent
aefe9b8813
commit
c1dcfa78f7
18
.drone.star
18
.drone.star
@ -143,7 +143,7 @@ def linux(ctx, arch):
|
||||
"name": "docker",
|
||||
"image": "plugins/docker",
|
||||
"settings": {
|
||||
"dockerfile": "docker/Dockerfile.linux.%s" % (arch),
|
||||
"dockerfile": "docker/Dockerfile.%s" % (arch),
|
||||
"repo": "owncloudci/%s" % (ctx.repo.name),
|
||||
"username": {
|
||||
"from_secret": "docker_username",
|
||||
@ -152,14 +152,26 @@ def linux(ctx, arch):
|
||||
"from_secret": "docker_password",
|
||||
},
|
||||
"auto_tag": True,
|
||||
"auto_tag_suffix": "linux-%s" % (arch),
|
||||
"auto_tag_suffix": "%s" % (arch),
|
||||
},
|
||||
})
|
||||
else:
|
||||
steps.append({
|
||||
"name": "dryrun",
|
||||
"image": "plugins/docker",
|
||||
"settings": {
|
||||
'dry_run': True,
|
||||
"dockerfile": "docker/Dockerfile.%s" % (arch),
|
||||
"repo": "owncloudci/%s" % (ctx.repo.name),
|
||||
"auto_tag": True,
|
||||
"auto_tag_suffix": "%s" % (arch),
|
||||
},
|
||||
})
|
||||
|
||||
return {
|
||||
"kind": "pipeline",
|
||||
"type": "docker",
|
||||
"name": "linux-%s" % (arch),
|
||||
"name": "build-%s" % (arch),
|
||||
"platform": {
|
||||
"os": "linux",
|
||||
"arch": arch,
|
||||
|
@ -7,8 +7,10 @@ LABEL org.opencontainers.image.url="https://github.com/owncloud-ci/drone-ansible
|
||||
LABEL org.opencontainers.image.source="https://github.com/owncloud-ci/drone-ansible"
|
||||
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ci/drone-ansible"
|
||||
|
||||
ARG ANSIBLE_VERSION
|
||||
|
||||
# renovate: datasource=pypi depName=ansible
|
||||
ENV ANSIBLE_VERSION="2.10.5"
|
||||
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-2.10.5}"
|
||||
|
||||
RUN apk add --no-cache bash git curl rsync openssh-client sshpass py3-pip py3-requests py3-paramiko python3-dev libffi-dev libressl-dev libressl build-base && \
|
||||
pip3 install -U pip && \
|
@ -7,8 +7,10 @@ LABEL org.opencontainers.image.url="https://github.com/owncloud-ci/drone-ansible
|
||||
LABEL org.opencontainers.image.source="https://github.com/owncloud-ci/drone-ansible"
|
||||
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ci/drone-ansible"
|
||||
|
||||
ARG ANSIBLE_VERSION
|
||||
|
||||
# renovate: datasource=pypi depName=ansible
|
||||
ENV ANSIBLE_VERSION="2.10.5"
|
||||
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-2.10.5}"
|
||||
|
||||
RUN apk add --no-cache bash git curl rsync openssh-client sshpass py3-pip py3-requests py3-paramiko python3-dev libffi-dev libressl-dev libressl build-base && \
|
||||
pip3 install -U pip && \
|
@ -7,8 +7,10 @@ LABEL org.opencontainers.image.url="https://github.com/owncloud-ci/drone-ansible
|
||||
LABEL org.opencontainers.image.source="https://github.com/owncloud-ci/drone-ansible"
|
||||
LABEL org.opencontainers.image.documentation="https://github.com/owncloud-ci/drone-ansible"
|
||||
|
||||
ARG ANSIBLE_VERSION
|
||||
|
||||
# renovate: datasource=pypi depName=ansible
|
||||
ENV ANSIBLE_VERSION="2.10.5"
|
||||
ENV ANSIBLE_VERSION="${ANSIBLE_VERSION:-2.10.5}"
|
||||
|
||||
RUN apk add --no-cache bash git curl rsync openssh-client sshpass py3-pip py3-requests py3-paramiko python3-dev libffi-dev libressl-dev libressl build-base && \
|
||||
pip3 install -U pip && \
|
@ -6,16 +6,16 @@ tags:
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
manifests:
|
||||
- image: owncloudci/drone-ansible:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-amd64
|
||||
- image: owncloudci/drone-ansible:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}amd64
|
||||
platform:
|
||||
architecture: amd64
|
||||
os: linux
|
||||
- image: owncloudci/drone-ansible:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm64
|
||||
- image: owncloudci/drone-ansible:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm64
|
||||
platform:
|
||||
architecture: arm64
|
||||
os: linux
|
||||
variant: v8
|
||||
- image: owncloudci/drone-ansible:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}linux-arm
|
||||
- image: owncloudci/drone-ansible:{{#if build.tag}}{{trimPrefix "v" build.tag}}-{{/if}}arm
|
||||
platform:
|
||||
architecture: arm
|
||||
os: linux
|
||||
|
Loading…
Reference in New Issue
Block a user