From 29b0f5f74e1f6748d3b8ff304ab11ae3c2e7d554 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 7 Jul 2024 22:01:48 -0400 Subject: [PATCH 1/5] Move to gitea act --- .drone.yml | 16 ---------------- .gitea/workflows/deploy.yaml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 485de9e..0000000 --- a/.drone.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: build -kind: pipeline - -steps: - - name: docker-build - image: plugins/docker - settings: - pull_image: true - registry: docker.atomaka.com - repo: docker.atomaka.com/mdformat - tags: - - latest - - ${DRONE_TAG} - -trigger: - event: tag diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..7c15efc --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,18 @@ +name: Deploy + +on: + tag: + +jobs: + deploy: + runs-on: cth-ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Push image + uses: docker/build-push-action@v6 + with: + push: true + tags: | + docker.atomaka.com/mdformat:latest + docker.atomaka.com/mdformat:${{gitea.tag}} From d0ab236c2e013a6315351790826f000d56520e13 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 7 Jul 2024 22:03:06 -0400 Subject: [PATCH 2/5] Move to gitea act --- .drone.yml | 16 ---------------- .gitea/workflows/deploy.yaml | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 16 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/deploy.yaml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 485de9e..0000000 --- a/.drone.yml +++ /dev/null @@ -1,16 +0,0 @@ -name: build -kind: pipeline - -steps: - - name: docker-build - image: plugins/docker - settings: - pull_image: true - registry: docker.atomaka.com - repo: docker.atomaka.com/mdformat - tags: - - latest - - ${DRONE_TAG} - -trigger: - event: tag diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml new file mode 100644 index 0000000..7c15efc --- /dev/null +++ b/.gitea/workflows/deploy.yaml @@ -0,0 +1,18 @@ +name: Deploy + +on: + tag: + +jobs: + deploy: + runs-on: cth-ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Push image + uses: docker/build-push-action@v6 + with: + push: true + tags: | + docker.atomaka.com/mdformat:latest + docker.atomaka.com/mdformat:${{gitea.tag}} From f62927298217dcc517e807298ea2b0b483b0ae7b Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Sun, 7 Jul 2024 22:07:27 -0400 Subject: [PATCH 3/5] Use correct gitea variable --- .gitea/workflows/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 7c15efc..3910423 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -15,4 +15,4 @@ jobs: push: true tags: | docker.atomaka.com/mdformat:latest - docker.atomaka.com/mdformat:${{gitea.tag}} + docker.atomaka.com/mdformat:${{gitea.ref_name}} From 20dd98b2da0c899239b70a2f021873b8e642eecf Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 11 Jul 2024 23:15:15 -0400 Subject: [PATCH 4/5] Fix tag action (#1) Reviewed-on: https://git.atomaka.com/atomaka/docker-mdformat/pulls/1 --- .gitea/workflows/deploy.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 3910423..93e1b28 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -1,7 +1,8 @@ name: Deploy on: - tag: + push: + tags: jobs: deploy: From 240a9124193c64f5b4e1b54db1d2394b3186a6a7 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 12 Jul 2024 20:59:46 -0400 Subject: [PATCH 5/5] Allow any tag to trigger (#2) Reviewed-on: https://git.atomaka.com/atomaka/docker-mdformat/pulls/2 --- .gitea/workflows/deploy.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 93e1b28..e4c1867 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -3,6 +3,7 @@ name: Deploy on: push: tags: + - '*' jobs: deploy: