From 5446cef8aa1cb50630c85595f77b78aafea4f53d Mon Sep 17 00:00:00 2001 From: stryan Date: Mon, 20 Jan 2025 20:58:32 -0500 Subject: [PATCH] switch to actions --- .gitea/workflows/build.yml | 23 +++++++++++++++++++++++ .woodpecker.yaml | 24 ------------------------ 2 files changed, 23 insertions(+), 24 deletions(-) create mode 100644 .gitea/workflows/build.yml delete mode 100644 .woodpecker.yaml diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..415055b --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,23 @@ +name: build +on: + push: + branches: ["master"] +jobs: + # Build job + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Login to registry + uses: docker/login-action@v3 + with: + registry: git.saintnet.tech + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push + env: + IMAGE_NAME: saintnet_stickers + REGISTRY: git.saintnet.tech + REPO_OWNER: stryan + run: "docker build -o type=docker -t ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest -f Containerfile .\ndocker push ${REGISTRY}/${REPO_OWNER}/${IMAGE_NAME}:latest \n" diff --git a/.woodpecker.yaml b/.woodpecker.yaml deleted file mode 100644 index ef2ef38..0000000 --- a/.woodpecker.yaml +++ /dev/null @@ -1,24 +0,0 @@ -steps: - - name: Generate config file - image: bash - environment: - CONFIGJSON: - from_secret: config_json - commands: - - ./generate.sh - - name: build-container - image: woodpeckerci/plugin-docker-buildx - settings: - repo: git.saintnet.tech/stryan/saintnet_stickers - registry: git.saintnet.tech - password: - from_secret: build_pass - username: - from_secret: build_username - dockerfile: Containerfile - tags: latest - configjson: - from_secret: config_json -when: - - branch: 'master' - event: push