From 084388d3b84e2b4cd561035bbae71b044649a425 Mon Sep 17 00:00:00 2001 From: jeff Date: Sun, 30 Jul 2023 21:41:26 -0700 Subject: [PATCH] Move to Gitea Actions. --- .gitea/workflows/build-image.yml | 33 ++++++++++++++++++++++++++++++++ .woodpecker/docker-build.yml | 15 --------------- 2 files changed, 33 insertions(+), 15 deletions(-) create mode 100644 .gitea/workflows/build-image.yml delete mode 100644 .woodpecker/docker-build.yml diff --git a/.gitea/workflows/build-image.yml b/.gitea/workflows/build-image.yml new file mode 100644 index 0000000..6c16a19 --- /dev/null +++ b/.gitea/workflows/build-image.yml @@ -0,0 +1,33 @@ +name: build image +on: + push: + branches: + - master + +jobs: + build image: + runs-on: ubuntu-latest + container: + image: catthehacker/ubuntu:act-latest + steps: + - name: code checkout + uses: actions/checkout@v3 + - name: docker login + uses: docker/login-action@v2 + with: + registry: registry.digitalocean.com + username: ${{ secrets.DOCKER_REGISTRY_CREDS }} + password: ${{ secrets.DOCKER_REGISTRY_CREDS }} + - name: create tag + id: create-tag + run: | + tag=$(echo ${{ github.sha }} | cut -b 1-8) + echo "::set-output name=tag::$tag" + - name: build and push + uses: docker/build-push-action@master + with: + platforms: linux/amd64 + push: true + tags: | + registry.digitalocean.com/ssdocker/${{ github.repository }}:${{ steps.create-tag.outputs.tag }} + registry.digitalocean.com/ssdocker/${{ github.repository }}:latest diff --git a/.woodpecker/docker-build.yml b/.woodpecker/docker-build.yml deleted file mode 100644 index 0f10e88..0000000 --- a/.woodpecker/docker-build.yml +++ /dev/null @@ -1,15 +0,0 @@ -pipeline: - publish: - when: - event: push - branch: main - image: woodpeckerci/plugin-docker-buildx - settings: - pull_image: false - dockerfile: Dockerfile - tags: - - ${CI_COMMIT:0:8} - repo: - from_secret: docker_repo - config: - from_secret: docker_config