Skip to content

Commit

Permalink
update go version in github actions and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
derrick-dacosta committed May 8, 2024
1 parent e677889 commit 4550fba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-push-staging.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'build & push docker staging'
name: "build & push docker staging"

on:
pull_request_target:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Setup golang environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: "1.22"

- name: Install dependencies
run: go mod tidy
Expand Down Expand Up @@ -55,4 +55,4 @@ jobs:
VERSION=${{ env.REPO_VERSION }}
REPO_REV=${{ env.REPO_REV }}
DATE=${{ env.BUILD_DATE }}
tags: ${{ secrets.DOCKER_ENDPOINT }}${{ secrets.DOCKER_REPO }}/fishymetrics:${{ env.REPO_VERSION }}
tags: ${{ secrets.DOCKER_ENDPOINT }}${{ secrets.DOCKER_REPO }}/fishymetrics:${{ env.REPO_VERSION }}
19 changes: 9 additions & 10 deletions .github/workflows/pr-prechecks.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'prechecks'
name: "prechecks"

on:
workflow_dispatch:
Expand All @@ -15,7 +15,7 @@ jobs:
- name: Setup golang environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: "1.22"

- name: Install dependencies
run: go mod tidy
Expand All @@ -25,12 +25,12 @@ jobs:

- name: Run Whitesource/Mend scan
run: |
curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
export WS_CHECHKPOLICIES=true
export WS_FORCECHECKALLDEPENDENCIES=true
export WS_FORCEUPDATE=true
export WS_UPDATEINVENTORY=true
java -jar wss-unified-agent.jar -apiKey ${{ secrets.MEND_API_KEY }} -product ${{ secrets.MEND_PRODUCT_NAME }} -project WS-fishymetrics
curl -LJO https://github.com/whitesource/unified-agent-distribution/releases/latest/download/wss-unified-agent.jar
export WS_CHECHKPOLICIES=true
export WS_FORCECHECKALLDEPENDENCIES=true
export WS_FORCEUPDATE=true
export WS_UPDATEINVENTORY=true
java -jar wss-unified-agent.jar -apiKey ${{ secrets.MEND_API_KEY }} -product ${{ secrets.MEND_PRODUCT_NAME }} -project WS-fishymetrics
build:
runs-on: ubuntu-latest
Expand All @@ -41,11 +41,10 @@ jobs:
- name: Setup golang environment
uses: actions/setup-go@v5
with:
go-version: '1.21'
go-version: "1.22"

- name: Install dependencies
run: go mod tidy

- name: Make sure app can build
run: make build

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

FROM golang:1.21 as build
FROM golang:1.22 as build
COPY . /go/src/github.com/comcast/fishymetrics
WORKDIR /go/src/github.com/comcast/fishymetrics

Expand Down

0 comments on commit 4550fba

Please sign in to comment.