Update dockerpublish_restapi.yaml
@@ -2,18 +2,18 @@ name: Publish Docker image
on:
push:
- # Publish `develop` as Docker `latest` image.
+ # Publish `vulnerability-restapi` as Docker `latest` image.
branches:
- - develop
+ - vulnerability-restapi
# Run tests for any PRs.
pull_request:
branches:
- - develop
+ - vulnerability-restapi
env:
# TODO: Change variable to your image's name.
- IMAGE_NAME: fasten.restapi.snapshot
+ IMAGE_NAME: fasten.restapi.vulnerability
jobs:
@@ -36,7 +36,7 @@ jobs:
- name: Build REST API jar
run: cd analyzer/restapi-plugin && mvn clean install spring-boot:repackage
- name: Build image
- run: cd analyzer/restapi-plugin && docker build -t fasten.restapi.snapshot .
+ run: cd analyzer/restapi-plugin && docker build -t fasten.restapi.vulnerability .
- name: Log into registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
- name: Push image
@@ -63,3 +63,4 @@ jobs:
docker tag $IMAGE_NAME $IMAGE_ID:latest
docker push $IMAGE_ID:latest
+
