Skip to content

Commit

Permalink
Clear previous go setup (from system)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Litvinov <[email protected]>
  • Loading branch information
Zensey committed Jul 26, 2024
1 parent bc95772 commit 9678e0f
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
with:
go-version: '1.22.x'

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Prepare environment
run: |
RELEASE_BUILD=false
Expand Down Expand Up @@ -111,6 +116,11 @@ jobs:
with:
name: env.sh

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Setup FPM
run: |
sudo apt-get update
Expand Down Expand Up @@ -138,6 +148,12 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: env.sh

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -176,6 +192,11 @@ jobs:
with:
name: env.sh

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Remove bucket
run: |
source env.sh
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
name: env.sh
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Release nightly snapshot
run: |
source env.sh
Expand Down Expand Up @@ -64,6 +69,12 @@ jobs:
with:
name: env.sh
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -113,6 +124,12 @@ jobs:
with:
name: env.sh
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -150,6 +167,11 @@ jobs:
name: env.sh
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: PR Avado
run: |
source env.sh
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/tests-and-linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ jobs:
with:
go-version: '1.22.x'

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Install protoc
run: |
sudo apt-get update
Expand Down Expand Up @@ -43,6 +48,11 @@ jobs:
with:
go-version: '1.22.x'

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -62,6 +72,11 @@ jobs:
with:
go-version: '1.22.x'

- name: Clean previous go installation
run: |
export PATH=${GOROOT}/bin:$PATH
go version
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 9678e0f

Please sign in to comment.