You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.0 KiB

kind: pipeline
type: docker
name: default
trigger:
event:
- custom
steps:
- name: prepare
image: alpine:3.15
commands:
- apk add --update git rsync
- ./generate-patch.sh "${MASTODON_VERSION}" --no-build
- name: build
image: docker:dind
privileged: true
commands:
- /usr/local/bin/dockerd-entrypoint.sh &
- sleep 10
- MASTODON_VERSION=${MASTODON_VERSION} source ./libqueerpatchy.sh && build image && docker login -u ${DOCKER_USERNAME} -p ${DOCKER_PASSWORD} && push image
# environment:
# MASTODON_VERSION: v${MASTODON_VERSION}
# settings:
# username:
# from_secret: docker_username
# password:
# from_secret: docker_password
# repo: ${DOCKER_USERNAME}/qp-mastodon
# build_args_from_env:
# - MASTODON_VERSION
# tags:
# - latest
# - v${MASTODON_VERSION}
# context: ./deploy
# dockerfile: ./deploy/Dockerfile
# purge: true
# custom_dns:
# - 8.8.8.8
- name: cleanup
image: alpine:3.15
commands:
- ./generate-patch.sh "${MASTODON_VERSION}" --cleanup