Skip to content

Commit

Permalink
Argo Rollouts GH
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Rożek <[email protected]>
  • Loading branch information
P0lip committed Aug 2, 2024
1 parent 6803672 commit 1bec08c
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/actions/install-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@ runs:
if [[ ${RUNNER_ARCH} == "ARM64" ]]; then
sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
curl -L https://github.com/argoproj/argo-rollouts/releases/download/v1.7.1/kubectl-argo-rollouts-linux-arm64 -o kubectl-argo-rollouts
echo "ec6835b12d22d84ee511b3531448c57b3dea371dca694865f53d8d7d46b6a7ed kubectl-argo-rollouts" | sha256sum --quiet -c -
ret=$?
else
curl -L https://github.com/argoproj/argo-rollouts/releases/download/v1.7.1/kubectl-argo-rollouts-linux-amd64 -o kubectl-argo-rollouts
echo "b42859a4ead2b02dc1a53a101490f60adc9915b602e033ddc49e78e74a20895b kubectl-argo-rollouts" | sha256sum --quiet -c -
ret=$?
fi
if [ $ret -ne 0 ]; then
echo "Checksum failed"
exit 1
fi
sudo mv kubectl-argo-rollouts /usr/local/bin/kubectl-argo-rollouts
sudo chmod +x /usr/local/bin/kubectl-argo-rollouts
- if: runner.os == 'macOS'
name: install macOS dependencies
shell: bash
Expand All @@ -42,6 +57,8 @@ runs:
brew install gromgit/fuse/sshfs-mac
brew link --overwrite sshfs-mac
brew install argoproj/tap/kubectl-argo-rollouts
if [[ ${RUNNER_ARCH} == "ARM64" ]]; then
brew install jq
fi
Expand Down Expand Up @@ -85,3 +102,10 @@ runs:
Start-Process msiexec -Wait -verb runAs -Args "/i build-output\\sshfs-win.msi /passive /qn /L*V sshfs-win-install.log"
[Environment]::SetEnvironmentVariable("Path", "C:\\;C:\\Program Files\\SSHFS-Win\\bin;$ENV:Path", "Machine")
- if: runner.os == 'Windows'
name: Install Argo Rollouts Kubectl Plugin
shell: powershell
run: |
New-Item -Path "$HOME\kubectl-plugins" -ItemType Directory -Force
Invoke-WebRequest -Uri "https://github.com/argoproj/argo-rollouts/releases/download/v1.7.1/kubectl-argo-rollouts-windows-amd64" -OutFile "$HOME\kubectl-plugins\kubectl-argo-rollouts.exe"
[Environment]::SetEnvironmentVariable("Path", $ENV:Path + ";$HOME\kubectl-plugins", "Machine")
7 changes: 6 additions & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ jobs:
uses: actions/download-artifact@v3
with:
name: image
- name: Install Argo Rollouts
shell: bash
run: |
kubectl create namespace argo-rollouts
kubectl apply -n argo-rollouts -f https://github.com/argoproj/argo-rollouts/releases/latest/download/install.yaml
- name: Upload docker image to cluster
shell: bash
run: |
Expand All @@ -118,7 +123,7 @@ jobs:
command: |
set -ex
if [[ ${RUNNER_OS} == "Windows" ]]; then
export PATH="$PATH:/C/Program Files/SSHFS-Win/bin"
export PATH="$PATH:/C/Program Files/SSHFS-Win/bin:$HOME/kubectl-plugin"
fi
make check-integration
- uses: ./.github/actions/upload-logs
Expand Down

0 comments on commit 1bec08c

Please sign in to comment.