Skip to content

Commit af0b2e9

Browse files
committed
Fix deploy GitHub Action
1 parent 1de7173 commit af0b2e9

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/main.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,23 @@ jobs:
6262
run: echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
6363
- name: Configure Github Package Registry
6464
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin
65+
6566
- name: Install dependencies
66-
run: sudo apt-get install -y wait-for-it
67+
run: sudo apt-get update -qq && sudo apt-get install -y curl wait-for-it
68+
- name: Restore cached binaries
69+
id: cache-binaries-restore
70+
uses: actions/cache/restore@v3
71+
with:
72+
path: .bin
73+
key: ${{ runner.os }}-binaries
74+
- name: Install MinIO Client
75+
run: |
76+
mkdir .bin || exit 0
77+
cd .bin
78+
curl --retry 6 --fail --silent --location --output mc.RELEASE.2023-06-19T19-31-19Z "https://dl.min.io/client/mc/release/linux-$(dpkg --print-architecture)/mc.RELEASE.2023-06-19T19-31-19Z"
79+
curl --retry 6 --fail --silent --location "https://dl.min.io/client/mc/release/linux-$(dpkg --print-architecture)/mc.RELEASE.2023-06-19T19-31-19Z.sha256sum" | sha256sum --check -
80+
mv mc.RELEASE.2023-06-19T19-31-19Z mc
81+
chmod +x mc
6782
6883
# Run tests and builds image
6984
- name: Run tests - latest njs version

0 commit comments

Comments
 (0)