|
|
|
@ -24,14 +24,16 @@ jobs:
|
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
with:
|
|
|
|
|
ref: latest_candidate
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
|
- name: Prepare image but do not push it yet
|
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
|
with:
|
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
repository: ${{ github.repository_owner }}/grist
|
|
|
|
|
tags: latest
|
|
|
|
|
push: false
|
|
|
|
|
context: .
|
|
|
|
|
load: true
|
|
|
|
|
tags: ${{ github.repository_owner }}/grist:latest
|
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }} for testing
|
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
|
with:
|
|
|
|
@ -50,13 +52,18 @@ jobs:
|
|
|
|
|
run: yarn run build:prod
|
|
|
|
|
- name: Run tests
|
|
|
|
|
run: TEST_IMAGE=${{ github.repository_owner }}/grist VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:docker
|
|
|
|
|
- name: Push to Docker Hub
|
|
|
|
|
uses: docker/build-push-action@v1
|
|
|
|
|
- name: Log in to Docker Hub
|
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
|
with:
|
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
|
repository: ${{ github.repository_owner }}/grist
|
|
|
|
|
tags: latest
|
|
|
|
|
- name: Push to Docker Hub
|
|
|
|
|
uses: docker/build-push-action@v2
|
|
|
|
|
with:
|
|
|
|
|
context: .
|
|
|
|
|
platforms: linux/amd64,linux/arm64/v8
|
|
|
|
|
push: true
|
|
|
|
|
tags: ${{ github.repository_owner }}/grist:latest
|
|
|
|
|
- name: Update latest branch
|
|
|
|
|
uses: ad-m/github-push-action@8407731efefc0d8f72af254c74276b7a90be36e1
|
|
|
|
|
with:
|
|
|
|
|