mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
6e3ec298f2
Summary: * Keeps `grist-core:latest` docker image up to date with grist-core source, with a daily cron job. * Update yarn.lock file. * In passing, tag current version for a versioned release. When a push to `main` branch passes tests, the result is placed in `latest_candidate` branch. The cron job will update docker up from `latest_candidate`, placing code used for image in `latest` branch. Test Plan: tested in a grist-core fork Reviewers: georgegevoian Reviewed By: georgegevoian Differential Revision: https://phab.getgrist.com/D3156
23 lines
591 B
YAML
23 lines
591 B
YAML
name: Push Docker image
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
push_to_registry:
|
|
name: Push Docker image to Docker Hub
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out the repo
|
|
uses: actions/checkout@v2
|
|
- name: Push to Docker Hub
|
|
uses: docker/build-push-action@v1
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
repository: ${{ github.repository }}
|
|
tag_with_ref: true
|