Skip to content

Commit

Permalink
action: keep latest nydus and harbor version
Browse files Browse the repository at this point in the history
Signed-off-by: Yadong Ding <[email protected]>
  • Loading branch information
Desiki-high committed Dec 6, 2023
1 parent 7eaab2b commit 61f4c44
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 26 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/concurrent-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
branches: [ main ]
paths-ignore: [ '**.md']

env:
HARBOR_VERSION: 2.8.4
NYDUS_VERSION: 2.2.3

jobs:
concurrent_test_same:
runs-on: ubuntu-latest
Expand All @@ -30,8 +26,9 @@ jobs:
- name: Install Harbor
run: |
wget https://github.com/goharbor/harbor/releases/download/v${{ env.HARBOR_VERSION }}/harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
tar xzvf harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
HARBOR_VERION=$(curl https://api.github.com/repos/goharbor/harbor/releases/latest | jq -r '.tag_name')
wget https://github.com/goharbor/harbor/releases/download/${HARBOR_VERION}/harbor-offline-installer-${HARBOR_VERION}.tgz
tar xzvf harbor-offline-installer-${HARBOR_VERION}.tgz
cp ./script/integration/harbor.yml harbor/harbor.yml
cd harbor
sudo ./install.sh
Expand All @@ -45,8 +42,9 @@ jobs:
- name: Concurrent Test
run: |
wget https://github.com/dragonflyoss/image-service/releases/download/v${{ env.NYDUS_VERSION }}/nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz
sudo tar xzvf nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
NYDUS_VERSION=$(curl https://api.github.com/repos/Dragonflyoss/nydus/releases/latest | jq -r '.tag_name')
wget https://github.com/dragonflyoss/image-service/releases/download/${NYDUS_VERSION}/nydus-static-${NYDUS_VERSION}-linux-amd64.tgz
sudo tar xzvf nydus-static-${NYDUS_VERSION}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
./script/integration/concurrent/test-same.sh wordpress
concurrent_test_diff:
Expand All @@ -66,8 +64,9 @@ jobs:
- name: Install Harbor
run: |
wget https://github.com/goharbor/harbor/releases/download/v${{ env.HARBOR_VERSION }}/harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
tar xzvf harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
HARBOR_VERION=$(curl https://api.github.com/repos/goharbor/harbor/releases/latest | jq -r '.tag_name')
wget https://github.com/goharbor/harbor/releases/download/${HARBOR_VERION}/harbor-offline-installer-${HARBOR_VERION}.tgz
tar xzvf harbor-offline-installer-${HARBOR_VERION}.tgz
cp ./script/integration/harbor.yml harbor/harbor.yml
cd harbor
sudo ./install.sh
Expand All @@ -86,6 +85,7 @@ jobs:
- name: Concurrent Test
run: |
wget https://github.com/dragonflyoss/image-service/releases/download/v${{ env.NYDUS_VERSION }}/nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz
sudo tar xzvf nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
NYDUS_VERSION=$(curl https://api.github.com/repos/Dragonflyoss/nydus/releases/latest | jq -r '.tag_name')
wget https://github.com/dragonflyoss/image-service/releases/download/${NYDUS_VERSION}/nydus-static-${NYDUS_VERSION}-linux-amd64.tgz
sudo tar xzvf nydus-static-${NYDUS_VERSION}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
./script/integration/concurrent/test-diff.sh
12 changes: 6 additions & 6 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
paths-ignore: [ '**.md']

env:
HARBOR_VERSION: 2.8.4
NYDUS_VERSION: 2.2.3
OCI_IMAGE_NAME: redis

jobs:
Expand Down Expand Up @@ -67,8 +65,9 @@ jobs:

- name: Install Harbor
run: |
wget https://github.com/goharbor/harbor/releases/download/v${{ env.HARBOR_VERSION }}/harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
tar xzvf harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
HARBOR_VERION=$(curl https://api.github.com/repos/goharbor/harbor/releases/latest | jq -r '.tag_name')
wget https://github.com/goharbor/harbor/releases/download/${HARBOR_VERION}/harbor-offline-installer-${HARBOR_VERION}.tgz
tar xzvf harbor-offline-installer-${HARBOR_VERION}.tgz
cp ./script/integration/harbor.yml harbor/harbor.yml
cd harbor
sudo ./install.sh
Expand All @@ -84,8 +83,9 @@ jobs:
run: |
chmod +x accel*
# Download nydus components
wget https://github.com/dragonflyoss/image-service/releases/download/v${{ env.NYDUS_VERSION }}/nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz
sudo tar xzvf nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
NYDUS_VERSION=$(curl https://api.github.com/repos/Dragonflyoss/nydus/releases/latest | jq -r '.tag_name')
wget https://github.com/dragonflyoss/image-service/releases/download/${NYDUS_VERSION}/nydus-static-${NYDUS_VERSION}-linux-amd64.tgz
sudo tar xzvf nydus-static-${NYDUS_VERSION}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
./script/integration/nydus/test.sh ${{ env.OCI_IMAGE_NAME }}
- name: Test eStargz Driver
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/webhook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ on:
branches: [ main ]
paths-ignore: [ '**.md']

env:
HARBOR_VERSION: 2.8.4
NYDUS_VERSION: 2.2.3

jobs:
webhook_test:
runs-on: ubuntu-latest
Expand All @@ -30,15 +26,17 @@ jobs:
- name: Install Harbor
run: |
wget https://github.com/goharbor/harbor/releases/download/v${{ env.HARBOR_VERSION }}/harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
tar xzvf harbor-offline-installer-v${{ env.HARBOR_VERSION }}.tgz
HARBOR_VERION=$(curl https://api.github.com/repos/goharbor/harbor/releases/latest | jq -r '.tag_name')
wget https://github.com/goharbor/harbor/releases/download/${HARBOR_VERION}/harbor-offline-installer-${HARBOR_VERION}.tgz
tar xzvf harbor-offline-installer-${HARBOR_VERION}.tgz
cp ./script/integration/harbor.yml harbor/harbor.yml
cd harbor
sudo ./install.sh
- name: Webhook Test
run: |
# Download nydus components
wget https://github.com/dragonflyoss/image-service/releases/download/v${{ env.NYDUS_VERSION }}/nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz
sudo tar xzvf nydus-static-v${{ env.NYDUS_VERSION }}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
NYDUS_VERSION=$(curl https://api.github.com/repos/Dragonflyoss/nydus/releases/latest | jq -r '.tag_name')
wget https://github.com/dragonflyoss/image-service/releases/download/${NYDUS_VERSION}/nydus-static-${NYDUS_VERSION}-linux-amd64.tgz
sudo tar xzvf nydus-static-${NYDUS_VERSION}-linux-amd64.tgz --wildcards --strip-components=1 -C /usr/bin/ nydus-static/*
sudo ./script/integration/webhook/test.sh

0 comments on commit 61f4c44

Please sign in to comment.