Merge pull request #17 from pegasystems/add-security-md #5
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: 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 | |