Skip to content

Commit

Permalink
Use Docker push script on pushes and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
birkland committed Sep 30, 2021
1 parent accbe1a commit 8c48eb9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
branches:
- main
- development
tags:
- v*
pull_request:
branches:
- main
Expand Down Expand Up @@ -114,6 +116,7 @@ jobs:
needs: [ build, test ]
env:
DOCKER_USER: ${{secrets.DOCKER_USER}}
DOCKER_PUSH_REPOSITORY: ${{secrets.DOCKER_PUSH_REPOSITORY}}
steps:
# Check out current commit
- name: Checkout
Expand Down Expand Up @@ -144,7 +147,7 @@ jobs:
# Push docker images, if we are on the appropriate branch or tag
- name: Docker Push
if: ${{ github.event_name != 'pull_request' && env.DOCKER_USER }}
run: docker-compose push drupal
run: sh tag_and_push_images.sh

# Experimental way to delete artifact
- name: Delete Temporary Images
Expand Down

0 comments on commit 8c48eb9

Please sign in to comment.