From 44786b861d156d46d88a2454ba4f3a79f4c9f997 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Wed, 24 Apr 2024 22:20:54 -0700 Subject: [PATCH] Rename the Woodpecker file back; Make pipeline only run on tag; Use tag as Docker label --- .woodpecker.yaml | 15 +++++++++++++++ .woodpecker.yml | 12 ------------ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 .woodpecker.yaml delete mode 100644 .woodpecker.yml diff --git a/.woodpecker.yaml b/.woodpecker.yaml new file mode 100644 index 0000000..c94a097 --- /dev/null +++ b/.woodpecker.yaml @@ -0,0 +1,15 @@ +steps: + build: + image: docker + commands: + - "docker login git.snyman.info -u $DOCKER_USERNAME -p $DOCKER_TOKEN" + - "docker build --build-arg FLARUM_VERSION=$CI_COMMIT_TAG -t git.snyman.info/raoul/flarum:$CI_COMMIT_TAG -t git.snyman.info/raoul/flarum:latest ." + - "docker push git.snyman.info/raoul/flarum:$CI_COMMIT_TAG" + - "docker push git.snyman.info/raoul/flarum:latest" + volumes: + - /var/run/docker.sock:/var/run/docker.sock + secrets: + - docker_username + - docker_token + when: + - event: tag diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 9f5e2a7..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,12 +0,0 @@ -steps: - build: - image: docker - commands: - - "docker login git.snyman.info -u $DOCKER_USERNAME -p $DOCKER_TOKEN" - - "docker build -t git.snyman.info/raoul/flarum ." - - "docker push git.snyman.info/raoul/flarum" - volumes: - - /var/run/docker.sock:/var/run/docker.sock - secrets: - - docker_username - - docker_token