Skip to content

Commit

Permalink
Update nezha-agent download url.
Browse files Browse the repository at this point in the history
  • Loading branch information
fscarmen2 committed Sep 6, 2023
1 parent eb3bb10 commit 66e7bfe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Build and push images"

on:
workflow_dispatch:

jobs:
Building:
runs-on: ubuntu-latest
Expand All @@ -14,24 +14,24 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4.0.0
with:
fetch-depth: 0

- name: Set up QEMU
uses: docker/setup-qemu-action@v1.2.0
uses: docker/setup-qemu-action@v2.2.0

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1.6.0
uses: docker/setup-buildx-action@v2.10.0

- name: Login to DockerHub
uses: docker/login-action@v1.14.1
uses: docker/login-action@v2.2.0
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}

- name: Push images to Docker hub
uses: docker/build-push-action@v2.9.0
uses: docker/build-push-action@v4.1.1
with:
push: true
platforms: linux/amd64
Expand Down
6 changes: 3 additions & 3 deletions files/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@ check_variable() {
# 下载最新版本 Nezha Agent
download_agent() {
if [ ! -e nezha-agent ]; then
URL=\$(wget -qO- "https://api.github.com/repos/naiba/nezha/releases/latest" | grep -o "https.*linux_amd64.zip")
URL=\${URL:-https://github.com/naiba/nezha/releases/download/v0.14.11/nezha-agent_linux_amd64.zip}
URL=\$(wget -qO- "https://api.github.com/repos/nezhahq/agent/releases/latest" | grep -o "https.*linux_amd64.zip")
URL=\${URL:-https://github.com/nezhahq/agent/releases/download/v0.15.6/nezha-agent_linux_amd64.zip}
wget \${URL}
unzip -qod ./ nezha-agent_linux_amd64.zip
rm -f nezha-agent_linux_amd64.zip
Expand Down Expand Up @@ -439,7 +439,7 @@ EOF
"script":"/app/nezha-agent",
"args":"-s ${NEZHA_SERVER}:${NEZHA_PORT} -p ${NEZHA_KEY} ${TLS}"
EOF

[ -n "${SSH_DOMAIN}" ] && cat >> ecosystem.config.js << EOF
},
{
Expand Down

2 comments on commit 66e7bfe

@4everland
Copy link

@4everland 4everland bot commented on 66e7bfe Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following parameters

parameters Value
IPFS CID bafybeih4pfeshpqk2syr76t6ute2gwkm6ze24or2bz35hzjw27yu6zvquy
Assigned domain https://argo-x-container-paas-osyilork-fscarmen2.4everland.app
https://argo-x-container-paas.4everland.app
Custom domain

@4everland
Copy link

@4everland 4everland bot commented on 66e7bfe Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following parameters

parameters Value
IPFS CID bafybeiajf5ydntkfef4imx366dk5j3ieaz7btsympzxtuhqts577mav5we
Assigned domain https://argo-x-container-paas-xe7zx3vc-fscarmen2.4everland.app
https://argo-x-container-paas.4everland.app
Custom domain

Please sign in to comment.