-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement docker multi stage build and use common Go image (#265)
* implement multi-stage build * update github actions * update github actions
- Loading branch information
1 parent
8df0599
commit 0fa115f
Showing
5 changed files
with
34 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Run the formatter, linter, and vetter | ||
uses: dell/common-github-actions/go-code-formatter-linter-vetter@main | ||
with: | ||
|
@@ -20,7 +20,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Run the forbidden words scan | ||
uses: dell/common-github-actions/code-sanitizer@main | ||
with: | ||
|
@@ -60,7 +60,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Run Go Security | ||
uses: securego/gosec@master | ||
with: | ||
|
@@ -70,7 +70,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Run malware scan | ||
uses: dell/common-github-actions/malware-scanner@main | ||
with: | ||
|
@@ -81,12 +81,12 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go 1.21+ | ||
uses: actions/setup-go@v4 | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ^1.21 | ||
id: go | ||
- name: Checkout the code | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Install Mockgen | ||
run: go get github.com/golang/mock/[email protected] | ||
- name: Get dependencies | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters