Thanks to visit codestin.com
Credit goes to github.com

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
12 changes: 8 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,15 @@ jobs:
needs: [quality-gate]
runs-on: macos-latest # Due to our code signing process, it's vital that we run our release steps on macOS.
steps:
- uses: docker-practice/actions-setup-docker@v1

# note, it is important to always be auth'd into docker.io to prevent rate limiting issues
- name: Login to Docker Hub
run: echo ${{ secrets.TOOLBOX_DOCKER_PASS }} | docker login docker.io -u ${{ secrets.TOOLBOX_DOCKER_USER }} --password-stdin
# we are having an infinite loop of installing docker https://github.com/anchore/syft/actions/runs/1199137004
# we are still looking for a fix

# - uses: docker-practice/actions-setup-docker@v1
#
# # note, it is important to always be auth'd into docker.io to prevent rate limiting issues
# - name: Login to Docker Hub
# run: echo ${{ secrets.TOOLBOX_DOCKER_PASS }} | docker login docker.io -u ${{ secrets.TOOLBOX_DOCKER_USER }} --password-stdin

- uses: actions/setup-go@v2
with:
Expand Down
29 changes: 16 additions & 13 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,19 @@ brews:
homepage: *website
description: *description

dockers:
- dockerfile: Dockerfile
image_templates:
- "anchore/syft:latest"
- "anchore/syft:{{ .Tag }}"
- "anchore/syft:v{{ .Major }}"
- "anchore/syft:v{{ .Major }}.{{ .Minor }}"
build_flag_templates:
- "--build-arg=BUILD_DATE={{.Date}}"
- "--build-arg=BUILD_VERSION={{.Version}}"
- "--build-arg=VCS_REF={{.FullCommit}}"
- "--build-arg=VCS_URL={{.GitURL}}"
use_buildx: true
# we are having an infinite loop of installing docker https://github.com/anchore/syft/actions/runs/1199137004
# we are still looking for a fix

#dockers:
# - dockerfile: Dockerfile
# image_templates:
# - "anchore/syft:latest"
# - "anchore/syft:{{ .Tag }}"
# - "anchore/syft:v{{ .Major }}"
# - "anchore/syft:v{{ .Major }}.{{ .Minor }}"
# build_flag_templates:
# - "--build-arg=BUILD_DATE={{.Date}}"
# - "--build-arg=BUILD_VERSION={{.Version}}"
# - "--build-arg=VCS_REF={{.FullCommit}}"
# - "--build-arg=VCS_URL={{.GitURL}}"
# use_buildx: true