Skip to content

Commit

Permalink
Build staging images
Browse files Browse the repository at this point in the history
  • Loading branch information
timkelty committed Sep 21, 2021
1 parent 8a4b101 commit e7ce5bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build and push docker images

on:
workflow_dispatch:
push:
branches:
- staging
release:
types: [published]

Expand All @@ -27,7 +30,16 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build craftcms/demo-europa:staging
if: ${{ github.ref == 'refs/heads/staging' }}
uses: docker/build-push-action@v2
with:
push: true
platforms: linux/amd64,linux/arm64
tags: craftcms/demo-europa:staging

- name: Build craftcms/demo-europa:latest
if: ${{ github.event_name == 'release' }}
uses: docker/build-push-action@v2
with:
push: true
Expand Down

0 comments on commit e7ce5bb

Please sign in to comment.