Add docker workflow for main/latest
@@ -55,3 +55,16 @@ jobs:
files: junit/api-mgmt-dev-portal/*.xml
report_individual_runs: true
deduplicate_classes_by_file_name: false
+
+ Publish:
+ runs-on: ubuntu-latest
+ if: github.event.pull_request.merged == true && github.repository_owner == 'Apiman'
+ steps:
+ # Build and push new Docker images
+ - name: Login to DockerHub Registry
+ run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
+ - name: Building Docker Images
+ run: docker build . --file Dockerfile --tag apiman/developer-portal:latest
+ - name: Push The Tagged Docker Images
+ run: docker push apiman/developer-portal:latest
+
