Skip to content

Merge pull request #17 from pegasystems/add-security-md #5

Merge pull request #17 from pegasystems/add-security-md

Merge pull request #17 from pegasystems/add-security-md #5

Workflow file for this run

name: Build and Deploy
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
IMAGE_NAME: pegasystems/mock-web-service:0.0.8
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build -t $IMAGE_NAME .
- name: Login To Docker Hub
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'pegasystems/docker-mock-web-service' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to DockerHub
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'pegasystems/docker-mock-web-service' }}
run: docker push $IMAGE_NAME