mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
Disable prerelease version update check (#140)
* disable prerelease version update check Signed-off-by: Alex Goodman <alex.goodman@anchore.com> * use prerelease flag as source of truth for user notifications Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
691e26d3a3
commit
90bd68e44c
4
.github/scripts/update-version-file.sh
vendored
4
.github/scripts/update-version-file.sh
vendored
@ -5,7 +5,9 @@ BIN="syft"
|
|||||||
DISTDIR=$1
|
DISTDIR=$1
|
||||||
VERSION=$2
|
VERSION=$2
|
||||||
|
|
||||||
if [[ $VERSION == *-* ]] ; then
|
# the source of truth as to whether we want to notify users of an update is if the release just created is NOT
|
||||||
|
# flagged as a pre-release on github
|
||||||
|
if [[ "$(curl -SsL https://api.github.com/repos/anchore/${BIN}/releases/tags/${VERSION} | jq .prerelease)" == "true" ]] ; then
|
||||||
echo "skipping publishing a version file (this is a pre-release: ${VERSION})"
|
echo "skipping publishing a version file (this is a pre-release: ${VERSION})"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
6
.github/workflows/acceptance-test.yaml
vendored
6
.github/workflows/acceptance-test.yaml
vendored
@ -17,12 +17,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# TODO: remove me after release
|
|
||||||
- name: Configure git for private modules
|
|
||||||
env:
|
|
||||||
TOKEN: ${{ secrets.ANCHORE_GIT_READ_TOKEN }}
|
|
||||||
run: git config --global url."https://anchore:${TOKEN}@github.com".insteadOf "https://github.com"
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|||||||
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
@ -75,12 +75,6 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# TODO: remove me after release
|
|
||||||
- name: Configure git for private modules
|
|
||||||
env:
|
|
||||||
TOKEN: ${{ secrets.ANCHORE_GIT_READ_TOKEN }}
|
|
||||||
run: git config --global url."https://anchore:${TOKEN}@github.com".insteadOf "https://github.com"
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v2
|
- uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -68,7 +68,7 @@ help:
|
|||||||
|
|
||||||
.PHONY: ci-bootstrap
|
.PHONY: ci-bootstrap
|
||||||
ci-bootstrap: bootstrap
|
ci-bootstrap: bootstrap
|
||||||
sudo apt install -y bc
|
sudo apt update && sudo apt install -y bc jq
|
||||||
|
|
||||||
.PHONY: bootstrap
|
.PHONY: bootstrap
|
||||||
bootstrap: ## Download and install all go dependencies (+ prep tooling in the ./tmp dir)
|
bootstrap: ## Download and install all go dependencies (+ prep tooling in the ./tmp dir)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user