Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@ name: docker

on:
schedule:
- cron: '19 17 * * *' # Nightly builds capture upstream updates to dependency images such as node.
# Nightly builds capture upstream updates to dependency images such as node.
- cron: '19 17 * * *'
push:
branches: [ master ]
tags: [ '*.*.*' ]
pull_request:
branches: [ master ]

env:
REGISTRY: docker.io
IMAGE_NAME: parseplatform/parse-dashboard


jobs:
build:

Expand All @@ -23,6 +21,10 @@ jobs:
packages: write

steps:
- name: Determine branch name
id: branch
run: echo "::set-output name=branch_name::${GITHUB_REF#refs/*/}"

- name: Checkout repository
uses: actions/checkout@v2

Expand All @@ -45,6 +47,8 @@ jobs:
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
flavor: |
latest=${{ steps.branch.outputs.branch_name == 'master' }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
Expand Down