Skip to content

Commit

Permalink
Update node to latest LTS and add SBOM generation during pipeline runs
Browse files Browse the repository at this point in the history
  • Loading branch information
chrkaatz committed Sep 28, 2023
1 parent 4b1b7aa commit f334206
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: "16.13.0"
node-version: "18.18.0"
cache: "npm"

- run: npm install
Expand Down Expand Up @@ -82,6 +82,11 @@ jobs:
docker tag ${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
docker push --all-tags ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Generate SBOM and upload to GitHub
uses: anchore/[email protected]
with:
image: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}

deploy:
needs: [build-push-image]
if: github.ref == 'refs/heads/main'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine
FROM node:18-alpine

# make a pipe fail on the first failure
SHELL ["/bin/sh", "-o", "pipefail", "-c"]
Expand Down

0 comments on commit f334206

Please sign in to comment.