+ ADD dev branch to build
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
env:
|
env:
|
||||||
NAMESPACE: ${{ github.repository_owner }}
|
NAMESPACE: ${{ github.repository_owner }}
|
||||||
DOCKER_REGISTRY: ghcr.io
|
DOCKER_REGISTRY: ghcr.io
|
||||||
@@ -18,8 +20,8 @@ jobs:
|
|||||||
working-directory: /tmp
|
working-directory: /tmp
|
||||||
run: |
|
run: |
|
||||||
mkdir kp-binaries
|
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 -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 -LO "https://github.com/buildpacks-community/kpack-cli/releases/download/v${KPACK_CLI_VERSION}/kp-linux-amd64-${KPACK_CLI_VERSION}.sha256"
|
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
|
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 mv kp-binaries/kp-linux-amd64-${KPACK_CLI_VERSION} /usr/local/bin/kp
|
||||||
sudo chmod +x /usr/local/bin/kp
|
sudo chmod +x /usr/local/bin/kp
|
||||||
|
|||||||
8
.github/workflows/cicd.yaml
vendored
8
.github/workflows/cicd.yaml
vendored
@@ -1,6 +1,8 @@
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
jobs:
|
jobs:
|
||||||
build-image-and-deploy:
|
build-image-and-deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -10,6 +12,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: yesolutions/mirror-action@master
|
- uses: yesolutions/mirror-action@master
|
||||||
with:
|
with:
|
||||||
REMOTE: https://git.saito.systems/felegy/test-php.git
|
REMOTE: ${{ secrets.DEPLOY_REPO_URL }}
|
||||||
GIT_USERNAME: felegy
|
GIT_USERNAME: ${{ secrets.DEPLOY_REPO_USERNAME }}
|
||||||
GIT_PASSWORD: ${{ secrets.DEPLOY_REPO_TOKEN }}
|
GIT_PASSWORD: ${{ secrets.DEPLOY_REPO_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user