Compare commits
No commits in common. "main" and "v1.1.15" have entirely different histories.
@ -16,7 +16,7 @@ jobs:
|
||||
- id: get-id
|
||||
name: Get a unique tag for this build
|
||||
run: |
|
||||
echo "DOCKER_IMAGE=${{ vars.GCP_DOCKER_REGISTRY }}/${{ github.repository }}:${{ inputs.image_tag }}" >> "$GITHUB_OUTPUT";
|
||||
echo "DOCKER_IMAGE=${{ vars.docker_repo2_registry }}/${{ github.repository }}:${{ inputs.image_tag }}" >> "$GITHUB_OUTPUT";
|
||||
|
||||
- name: Print image name
|
||||
run: |
|
||||
@ -57,13 +57,13 @@ jobs:
|
||||
- name: Push the container image
|
||||
run: docker push ${{ steps.get-id.outputs.DOCKER_IMAGE }}
|
||||
|
||||
# - name: Scan Docker Image for vulnerabilities with Grype
|
||||
# uses: anchore/scan-action@v6
|
||||
# with:
|
||||
# image: ${{ steps.get-id.outputs.DOCKER_IMAGE }}
|
||||
# cache-db: true #Cache Grype DB in Github Actions
|
||||
# output-format: table
|
||||
# only-fixed: true
|
||||
# severity-cutoff: critical
|
||||
# fail-build: true
|
||||
- name: Scan Docker Image for vulnerabilities with Grype
|
||||
uses: anchore/scan-action@v6
|
||||
with:
|
||||
image: ${{ steps.get-id.outputs.DOCKER_IMAGE }}
|
||||
cache-db: true #Cache Grype DB in Github Actions
|
||||
output-format: table
|
||||
only-fixed: true
|
||||
severity-cutoff: critical
|
||||
fail-build: true
|
||||
|
||||
|
||||
@ -5,11 +5,10 @@ Github Action Workflows that can be reused, built by GMetri
|
||||
## Creating new releases
|
||||
|
||||
```bash
|
||||
commit_msg=v1.1.17
|
||||
git add -A;
|
||||
git commit -m "$commit_msg"
|
||||
git commit -m "<commit msg>"
|
||||
#Minor version
|
||||
git tag -a -m "$commit_msg" $commit_msg
|
||||
git tag -a -m "<tag msg>" v1.0.1
|
||||
git push --follow-tags
|
||||
#Moving major version
|
||||
git tag -fa v1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user