Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to docker.io registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Checkout code
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -77,7 +83,7 @@ jobs:
- name: Install Dependencies
run: |
brew update
brew install libpcap
brew install libpcap docker
echo "LD_LIBRARY_PATH=$(brew --prefix)/Cellar/libpcap/*/lib" >> $GITHUB_ENV
if: matrix.os == 'macos-latest'

Expand All @@ -98,6 +104,12 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
if: matrix.os != 'macos-latest'

- name: Login to docker.io registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Checkout code
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -161,6 +173,12 @@ jobs:
- name: Install Syft
uses: anchore/sbom-action/[email protected]

- name: Login to docker.io registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to ghcr.io registry
uses: docker/login-action@v3
with:
Expand Down
16 changes: 16 additions & 0 deletions .goreleaser/goreleaser-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ dockers:
- image_templates:
- "ghcr.io/method-security/codeanalyze:{{ .Version }}-amd64"
- "ghcr.io/method-security/codeanalyze:latest-amd64"
- "docker.io/methodsecurity/codeanalyze:{{ .Version }}-amd64"
- "docker.io/methodsecurity/codeanalyze:latest-amd64"
use: buildx
goos: linux
goarch: amd64
Expand All @@ -71,6 +73,8 @@ dockers:
- image_templates:
- "ghcr.io/method-security/codeanalyze:{{ .Version }}-arm64"
- "ghcr.io/method-security/codeanalyze:latest-arm64"
- "docker.io/methodsecurity/codeanalyze:{{ .Version }}-arm64"
- "docker.io/methodsecurity/codeanalyze:latest-arm64"
use: buildx
goos: linux
goarch: arm64
Expand All @@ -95,6 +99,18 @@ docker_manifests:
image_templates:
- 'ghcr.io/method-security/codeanalyze:{{ .Version }}-amd64'
- 'ghcr.io/method-security/codeanalyze:{{ .Version }}-arm64'
- name_template: 'ghcr.io/method-security/codeanalyze:latest'
image_templates:
- 'ghcr.io/method-security/codeanalyze:{{ .Version }}-amd64'
- 'ghcr.io/method-security/codeanalyze:{{ .Version }}-arm64'
- name_template: 'methodsecurity/codeanalyze:{{ .Version }}'
image_templates:
- 'docker.io/methodsecurity/codeanalyze:{{ .Version }}-amd64'
- 'docker.io/methodsecurity/codeanalyze:{{ .Version }}-arm64'
- name_template: 'methodsecurity/codeanalyze:latest'
image_templates:
- 'docker.io/methodsecurity/codeanalyze:{{ .Version }}-amd64'
- 'docker.io/methodsecurity/codeanalyze:{{ .Version }}-arm64'

sboms:
- artifacts: archive
Expand Down