Mitigate dependency vulnerability in a2d2:tomcat-embed-core 9.0.75 (#… #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Image CI | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
build-login-publish: | |
name: Push Docker image to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: build image | |
run: docker build -t elimuinformatics/a2d2:latest . | |
- name: tag image with version id | |
run: docker image tag elimuinformatics/a2d2:latest elimuinformatics/a2d2:1.0.2 | |
- name: push latest image | |
run: docker push elimuinformatics/a2d2:latest | |
- name: push image with Version id | |
run: docker push elimuinformatics/a2d2:1.0.2 | |
- name: push README to Dockerhub | |
uses: peter-evans/dockerhub-description@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
repository: elimuinformatics/a2d2 | |
readme-filepath: Dockerhub-README.md |