Skip to content

Commit

Permalink
build docker images after tests workflow completed, change tag name, …
Browse files Browse the repository at this point in the history
…remove arm64
  • Loading branch information
myonlylonely committed Oct 9, 2024
1 parent be9e6d8 commit d475bdb
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/preview-image.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: Preview Image
on:
push:
tags:
- '*-dev'
workflow_run:
workflows:
- Tests
types:
- completed
branches:
- master
workflow_dispatch:

env:
Expand Down Expand Up @@ -45,11 +49,6 @@ jobs:
node-version: ${{ env.NODE_VERSION }}
cache: 'yarn'

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down Expand Up @@ -78,14 +77,14 @@ jobs:
with:
push: true
tags: |
redash/redash:preview
redash/preview:${{ steps.version.outputs.VERSION_TAG }}
myonlylonely/redash:preview
myonlylonely/redash:${{ steps.version.outputs.VERSION_TAG }}
context: .
build-args: |
test_all_deps=true
cache-from: type=gha,scope=multi-platform
cache-to: type=gha,mode=max,scope=multi-platform
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
env:
DOCKER_CONTENT_TRUST: true

Expand Down

0 comments on commit d475bdb

Please sign in to comment.