File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,14 +11,24 @@ jobs:
1111 steps :
1212 - name : checkout branch
1313 uses : actions/checkout@v4
14+
1415 - name : Login to DockerHub Registry
1516 run : echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
17+
1618 - name : Get the version
1719 id : vars
1820 run : echo ::set-output name=tag::${GITHUB_REF#refs/*/}
19- - name : Build the Docker image and tag
20- run : docker build -f reqifviewer/Dockerfile -t stariongroup/reqifviewer:latest -t stariongroup/reqifviewer:${{ steps.vars.outputs.tag }} .
21- - name : push $RELEASE_VERSION tag
22- run : docker push stariongroup/reqifviewer:${{ steps.vars.outputs.tag }}
23- - name : push latest tag
24- run : docker push stariongroup/reqifviewer:latest
21+
22+ - name : Set up Docker Buildx
23+ uses : docker/setup-buildx-action@v2
24+
25+ - name : Build the Docker image, include SBOM and Provenance, and push
26+ run : |
27+ docker buildx build \
28+ --platform=linux/amd64 \
29+ -f reqifviewer/Dockerfile \
30+ -t stariongroup/reqifviewer:latest \
31+ -t stariongroup/reqifviewer:${{ steps.vars.outputs.tag }} \
32+ --sbom=true \
33+ --provenance=true \
34+ --push
You can’t perform that action at this time.
0 commit comments