Skip to content

Mitigate dependency vulnerability in a2d2:sshd-common-2.9.2.jar (#381) #95

Mitigate dependency vulnerability in a2d2:sshd-common-2.9.2.jar (#381)

Mitigate dependency vulnerability in a2d2:sshd-common-2.9.2.jar (#381) #95

Workflow file for this run

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