Skip to content

Merge pull request #29 from eBay/dev #32

Merge pull request #29 from eBay/dev

Merge pull request #29 from eBay/dev #32

Workflow file for this run

name: Docker Image CI
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 1.11
- name: Build with Maven
run:
mvn clean package --file pom.xml
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ebay/digital-signature-verification-ebay-api:latest
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: log in to dockerhub
run: echo "$DOCKERHUB_PASSWORD" | docker login -u "$DOCKERHUB_USERNAME" --password-stdin
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push
run: docker push ebay/digital-signature-verification-ebay-api:latest