From ace25f6f7be972f4b59893d924c3a81f42759c99 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 18 Jun 2023 23:29:11 -0700 Subject: [PATCH] ci --- .woodpecker/docker-build.yml | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml index bcbeebf..e9e6e03 100644 --- a/.woodpecker/docker-build.yml +++ b/.woodpecker/docker-build.yml @@ -1,27 +1,21 @@ pipeline: - create-tags: - when: - event: push - branch: main - image: node:20-bookworm - pull: true - commands: - - echo $(date -u +%Y-%m-%d_%H%M%S) > .docker_tags - - echo "latest" >> .docker_tags publish: when: event: push - branch: master + branch: main image: woodpeckerci/plugin-docker-buildx settings: - pull_image: true + pull_image: false dockerfile: Dockerfile -# tags_file: .docker_tags - auto_tag: true - secrets: [ docker_registry, docker_username, docker_password ] - registry: ${DOCKER_REGISTRY} - repo: simplesystems/website + tags: + - latest + - ${CI_COMMIT:0:8} + secrets: [ docker_registry, docker_config, docker_username, docker_repo ] + registry: + from_secret: docker_registry username: from_secret: docker_username - password: - from_secret: docker_password + repo: + from_secret: docker_repo + config: + from_secret: docker_config