Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Removed comments and set event to tag pushes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffmaher committed Dec 21, 2019
1 parent ada8a49 commit e0168fe
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/push_docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
name: Push Docker Image

# on:
# push:
# tags:
# - '*.*.*'

on: pull_request
on:
push:
tags:
- '*'

jobs:
push_docker:
Expand All @@ -20,8 +18,6 @@ jobs:
- name: Get branch
run: echo ::set-env name=BRANCH::$(echo ${GITHUB_REF:10})
- name: Build Docker image
# run: docker build -t ${{ secrets.AZURE_CONTAINER_REGISTRY_URL }}/cppd-medical-report-sails:${{github.ref}} .
run: docker build -t ${{ secrets.AZURE_CONTAINER_REGISTRY_URL }}/cppd-medical-report-sails:${{env.BRANCH}} .
- name: Publish Docker image
# run: docker push ${{ secrets.AZURE_CONTAINER_REGISTRY_URL }}/cppd-medical-report-sails:${{ github.ref }}
run: docker push ${{ secrets.AZURE_CONTAINER_REGISTRY_URL }}/cppd-medical-report-sails:${{env.BRANCH}}

0 comments on commit e0168fe

Please sign in to comment.