mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
run snapshot build on ubuntu
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
a5ae8e9668
commit
83778677c1
21
.github/workflows/acceptance-test.yaml
vendored
21
.github/workflows/acceptance-test.yaml
vendored
@ -14,7 +14,9 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build-Snapshot-Artifacts:
|
Build-Snapshot-Artifacts:
|
||||||
runs-on: macos-latest # We're creating these snapshot builds on macOS to be consistent with our release workflow's build process, which also takes place on macOS (due to code signing requirements).
|
# though the release pipeline is running on mac for the signing step, we are skipping the signing step here and
|
||||||
|
# require a system with docker installed, which ubuntu-20.04 has by default (and mac does not for licensing reasons).
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
@ -38,25 +40,8 @@ jobs:
|
|||||||
if: steps.bootstrap-cache.outputs.cache-hit != 'true'
|
if: steps.bootstrap-cache.outputs.cache-hit != 'true'
|
||||||
run: make bootstrap
|
run: make bootstrap
|
||||||
|
|
||||||
- name: Import GPG key
|
|
||||||
id: import_gpg
|
|
||||||
uses: crazy-max/ghaction-import-gpg@v2
|
|
||||||
env:
|
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.SIGNING_GPG_PRIVATE_KEY }}
|
|
||||||
PASSPHRASE: ${{ secrets.SIGNING_GPG_PASSPHRASE }}
|
|
||||||
|
|
||||||
- name: GPG signing info
|
|
||||||
run: |
|
|
||||||
echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
|
|
||||||
echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
|
|
||||||
echo "name: ${{ steps.import_gpg.outputs.name }}"
|
|
||||||
echo "email: ${{ steps.import_gpg.outputs.email }}"
|
|
||||||
|
|
||||||
- name: Build snapshot artifacts
|
- name: Build snapshot artifacts
|
||||||
run: make snapshot
|
run: make snapshot
|
||||||
env:
|
|
||||||
GPG_PRIVATE_KEY: ${{ secrets.SIGNING_GPG_PRIVATE_KEY }}
|
|
||||||
PASSPHRASE: ${{ secrets.SIGNING_GPG_PASSPHRASE }}
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -171,7 +171,7 @@ $(SNAPSHOTDIR): ## Build snapshot release binaries and packages
|
|||||||
|
|
||||||
# build release snapshots
|
# build release snapshots
|
||||||
BUILD_GIT_TREE_STATE=$(GITTREESTATE) \
|
BUILD_GIT_TREE_STATE=$(GITTREESTATE) \
|
||||||
$(TEMPDIR)/goreleaser release --skip-publish --rm-dist --snapshot --config $(TEMPDIR)/goreleaser.yaml
|
$(TEMPDIR)/goreleaser release --skip-publish --skip-sign --rm-dist --snapshot --config $(TEMPDIR)/goreleaser.yaml
|
||||||
|
|
||||||
# note: we cannot clean the snapshot directory since the pipeline builds the snapshot separately
|
# note: we cannot clean the snapshot directory since the pipeline builds the snapshot separately
|
||||||
.PHONY: acceptance-mac
|
.PHONY: acceptance-mac
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user