Compare commits
14 Commits
main
...
a247bed8d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a247bed8d4
|
||
|
|
cac5e8ff15
|
||
|
|
9a49e2c994
|
||
|
|
9f0fcb1b7e
|
||
|
|
3fa4045772
|
||
|
|
82e109b10b
|
||
|
|
b0ce0a956b
|
||
|
|
1ccb70138e
|
||
|
|
f9d823535e
|
||
|
|
f57b277951
|
||
|
|
ae9a2e17c1
|
||
|
|
d6a1e650dc
|
||
|
|
e96743093f
|
||
|
|
e4236cff6b
|
@@ -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
|
||||||
@@ -17,9 +19,9 @@ jobs:
|
|||||||
KPACK_CLI_VERSION: "0.13.0"
|
KPACK_CLI_VERSION: "0.13.0"
|
||||||
working-directory: /tmp
|
working-directory: /tmp
|
||||||
run: |
|
run: |
|
||||||
mkdir kp-binaries
|
mkdir -p 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
|
||||||
|
|||||||
17
.github/workflows/cicd.yaml
vendored
17
.github/workflows/cicd.yaml
vendored
@@ -1,15 +1,22 @@
|
|||||||
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
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: yesolutions/mirror-action@master
|
|
||||||
|
- uses: felegy/mirror-action@master
|
||||||
with:
|
with:
|
||||||
REMOTE: https://git.saito.systems/felegy/test-php.git
|
REMOTE: git@${{ secrets.DEPLOY_REPO }}:${{ github.repository }}.git
|
||||||
GIT_USERNAME: felegy
|
SSH_CONFIG: |
|
||||||
GIT_PASSWORD: ${{ secrets.DEPLOY_REPO_TOKEN }}
|
Host ${{ secrets.DEPLOY_REPO }}
|
||||||
|
ProxyCommand cloudflared access ssh --hostname %h
|
||||||
|
GIT_SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
GIT_SSH_NO_VERIFY_HOST: "true"
|
||||||
|
|||||||
Reference in New Issue
Block a user