Skip to content
This repository has been archived by the owner on Jul 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #26 from kubefirst/template-fix
Browse files Browse the repository at this point in the history
update runners to use correct arch
  • Loading branch information
jarededwards authored Nov 29, 2022
2 parents 66daef8 + c2024f6 commit 0d5fffe
Showing 1 changed file with 68 additions and 20 deletions.
88 changes: 68 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ jobs:
cd $HOME
echo "Install argo"
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$RUNNER_ARCH.gz
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$ARCH.gz
# Unzip
gunzip argo-linux-$RUNNER_ARCH.gz
gunzip argo-linux-$ARCH.gz
# Make binary executable
chmod +x argo-linux-$RUNNER_ARCH
chmod +x argo-linux-$ARCH
# Move binary to path
sudo mv ./argo-linux-$RUNNER_ARCH /usr/local/bin/argo
sudo mv ./argo-linux-$ARCH /usr/local/bin/argo
# Test installation
argo version --short
argo version --short
- name: Check out repository code
uses: actions/checkout@v3
- run: echo ${GITHUB_REPOSITORY}
Expand All @@ -74,20 +74,36 @@ jobs:
needs: publish
runs-on: self-hosted
steps:
- name: Define Arch arm64
if: "${{ runner.arch == 'ARM64' }}"
shell: bash
run: |
echo "Setting arch to ARM64"
ARCH=arm64
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Define Arch amd64
if: "${{ runner.arch == 'X64' }}"
shell: bash
run: |
echo "Setting arch to amd64"
ARCH=amd64
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Setup Runner for Argo
env:
ARCH: ${{ env.ARCH }}
run: |
cd $HOME
echo "Install argo"
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$RUNNER_ARCH.gz
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$ARCH.gz
# Unzip
gunzip argo-linux-$RUNNER_ARCH.gz
gunzip argo-linux-$ARCH.gz
# Make binary executable
chmod +x argo-linux-$RUNNER_ARCH
chmod +x argo-linux-$ARCH
# Move binary to path
sudo mv ./argo-linux-$RUNNER_ARCH /usr/local/bin/argo
sudo mv ./argo-linux-$ARCH /usr/local/bin/argo
# Test installation
argo version --short
argo version --short
- name: Check out repository code
uses: actions/checkout@v3
- name: development
Expand All @@ -109,20 +125,36 @@ jobs:
needs: development
runs-on: self-hosted
steps:
- name: Define Arch arm64
if: "${{ runner.arch == 'ARM64' }}"
shell: bash
run: |
echo "Setting arch to ARM64"
ARCH=arm64
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Define Arch amd64
if: "${{ runner.arch == 'X64' }}"
shell: bash
run: |
echo "Setting arch to amd64"
ARCH=amd64
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Setup Runner for Argo
env:
ARCH: ${{ env.ARCH }}
run: |
cd $HOME
echo "Install argo"
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$RUNNER_ARCH.gz
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$ARCH.gz
# Unzip
gunzip argo-linux-$RUNNER_ARCH.gz
gunzip argo-linux-$ARCH.gz
# Make binary executable
chmod +x argo-linux-$RUNNER_ARCH
chmod +x argo-linux-$ARCH
# Move binary to path
sudo mv ./argo-linux-$RUNNER_ARCH /usr/local/bin/argo
sudo mv ./argo-linux-$ARCH /usr/local/bin/argo
# Test installation
argo version --short
argo version --short
- name: Check out repository code
uses: actions/checkout@v3
- name: staging
Expand All @@ -144,20 +176,36 @@ jobs:
needs: staging
runs-on: self-hosted
steps:
- name: Define Arch arm64
if: "${{ runner.arch == 'ARM64' }}"
shell: bash
run: |
echo "Setting arch to ARM64"
ARCH=arm64
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Define Arch amd64
if: "${{ runner.arch == 'X64' }}"
shell: bash
run: |
echo "Setting arch to amd64"
ARCH=amd64
echo "ARCH=$ARCH" >> $GITHUB_ENV
- name: Setup Runner for Argo
env:
ARCH: ${{ env.ARCH }}
run: |
cd $HOME
echo "Install argo"
# Download the binary
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-amd64.gz
curl -sLO https://github.com/argoproj/argo-workflows/releases/download/${ARGO_VERSION}/argo-linux-$ARCH.gz
# Unzip
gunzip argo-linux-amd64.gz
gunzip argo-linux-$ARCH.gz
# Make binary executable
chmod +x argo-linux-amd64
chmod +x argo-linux-$ARCH
# Move binary to path
sudo mv ./argo-linux-amd64 /usr/local/bin/argo
sudo mv ./argo-linux-$ARCH /usr/local/bin/argo
# Test installation
argo version --short
argo version --short
- name: Check out repository code
uses: actions/checkout@v3
- name: release
Expand Down

0 comments on commit 0d5fffe

Please sign in to comment.