From e4236cff6bbb1588a50ef4b2900c0b4ce7d89148 Mon Sep 17 00:00:00 2001 From: felegy Date: Thu, 21 Aug 2025 14:36:40 +0000 Subject: [PATCH] + ADD dev branch to build --- .gitea/workflows/cd.yaml | 8 +++++--- .github/workflows/cicd.yaml | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 0b17506..d96dbb7 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -1,6 +1,8 @@ on: push: - branches: [ main ] + branches: + - main + - dev env: NAMESPACE: ${{ github.repository_owner }} DOCKER_REGISTRY: ghcr.io @@ -18,8 +20,8 @@ jobs: working-directory: /tmp run: | mkdir kp-binaries - curl -L "https://github.com/buildpacks-community/kpack-cli/releases/download/v${KPACK_CLI_VERSION}/kp-linux-amd64-${KPACK_CLI_VERSION}" -o kp-binaries/kp-linux-amd64-${KPACK_CLI_VERSION} - curl -LO "https://github.com/buildpacks-community/kpack-cli/releases/download/v${KPACK_CLI_VERSION}/kp-linux-amd64-${KPACK_CLI_VERSION}.sha256" + curl -sL "https://github.com/buildpacks-community/kpack-cli/releases/download/v${KPACK_CLI_VERSION}/kp-linux-amd64-${KPACK_CLI_VERSION}" -o kp-binaries/kp-linux-amd64-${KPACK_CLI_VERSION} + curl -sLO "https://github.com/buildpacks-community/kpack-cli/releases/download/v${KPACK_CLI_VERSION}/kp-linux-amd64-${KPACK_CLI_VERSION}.sha256" sha256sum -c kp-linux-amd64-${KPACK_CLI_VERSION}.sha256 || exit 1 sudo mv kp-binaries/kp-linux-amd64-${KPACK_CLI_VERSION} /usr/local/bin/kp sudo chmod +x /usr/local/bin/kp diff --git a/.github/workflows/cicd.yaml b/.github/workflows/cicd.yaml index 2230d38..13a7943 100644 --- a/.github/workflows/cicd.yaml +++ b/.github/workflows/cicd.yaml @@ -1,6 +1,8 @@ on: push: - branches: [ main ] + branches: + - main + - dev jobs: build-image-and-deploy: runs-on: ubuntu-latest @@ -10,6 +12,6 @@ jobs: fetch-depth: 0 - uses: yesolutions/mirror-action@master with: - REMOTE: https://git.saito.systems/felegy/test-php.git - GIT_USERNAME: felegy + REMOTE: ${{ secrets.DEPLOY_REPO_URL }} + GIT_USERNAME: ${{ secrets.DEPLOY_REPO_USERNAME }} GIT_PASSWORD: ${{ secrets.DEPLOY_REPO_TOKEN }}