mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
482ce0e4c4
Summary: The docker image is "grist" not "grist-core" Test Plan: tested on a fork Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3158
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Push latest Docker image
|
|
|
|
on:
|
|
push:
|
|
# Trigger if latest_candidate updates. This is automatically done by another
|
|
# workflow whenever tests pass on main - but events don't chain without using
|
|
# personal access tokens so we just use a cron job.
|
|
branches: [ latest_candidate ]
|
|
schedule:
|
|
# Run at 5:41 UTC daily
|
|
- cron: '41 5 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
push_to_registry:
|
|
name: Push latest Docker image to Docker Hub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v2
|
|
with:
|
|
ref: latest_candidate
|
|
- name: Push to Docker Hub
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: ${{ github.repository_owner }}/grist
|
|
tags: latest
|
|
- name: Update latest branch
|
|
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: latest
|
|
force: true
|