mirror of
https://github.com/anchore/syft.git
synced 2026-02-14 11:36:42 +01:00
improve docker release bootstrap (#1136)
This commit is contained in:
parent
d361d40cfa
commit
f5d02d4e52
17
.github/workflows/issues.yaml
vendored
17
.github/workflows/issues.yaml
vendored
@ -1,17 +0,0 @@
|
|||||||
# Uses https://github.com/actions/add-to-project example to add issues to Anchore OSS project
|
|
||||||
name: Add issues to OSS project
|
|
||||||
|
|
||||||
on:
|
|
||||||
issues:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
add-to-project:
|
|
||||||
name: Add issue to project
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/add-to-project@main
|
|
||||||
with:
|
|
||||||
project-url: https://github.com/orgs/anchore/projects/22
|
|
||||||
github-token: ${{ secrets.CI_WRITE_GITHUB_TOKEN }}
|
|
||||||
16
.github/workflows/release.yaml
vendored
16
.github/workflows/release.yaml
vendored
@ -160,6 +160,9 @@ jobs:
|
|||||||
|
|
||||||
release-docker-assets:
|
release-docker-assets:
|
||||||
needs: [release]
|
needs: [release]
|
||||||
|
# code signing requires we run on mac-os runners. docker does not come installed on the mac-os runner
|
||||||
|
# a previous release process installed and configured docker on the mac-os runner which lead to blocked releases
|
||||||
|
# the anchore tools team opted to break this step out to a separate process to remove this work constraint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -180,5 +183,18 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Restore go cache
|
||||||
|
id: go-cache
|
||||||
|
uses: actions/cache@v2.1.3
|
||||||
|
with:
|
||||||
|
path: ~/go/pkg/mod
|
||||||
|
key: ${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-go-${{ env.GO_VERSION }}-
|
||||||
|
|
||||||
|
- name: (cache-miss) Bootstrap all project dependencies
|
||||||
|
if: steps.tool-cache.outputs.cache-hit != 'true' || steps.go-cache.outputs.cache-hit != 'true'
|
||||||
|
run: make bootstrap
|
||||||
|
|
||||||
- name: Build & Publish docker images
|
- name: Build & Publish docker images
|
||||||
run: make release-docker-assets
|
run: make release-docker-assets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user