Create docker-image.yml

This commit is contained in:
Halilović Adis 2021-06-26 13:12:39 +02:00 committed by GitHub
parent e7c879ed3a
commit f3c642eeb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

25
.github/workflows/docker-image.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Docker Image CI
on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build -t spring-petclinic .
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image to Docker Hub
run: docker push hllvc/spring-petclinic:spring-petclinic