Skip to content

Commit

Permalink
Merge pull request #1094 from onekey-sec/build-docker-for-prs
Browse files Browse the repository at this point in the history
ci: build docker image for dependency updates
  • Loading branch information
vlaci authored Jan 28, 2025
2 parents 8726804 + 68d9c0a commit 748841b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build-publish-image.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build Docker image

on:
pull_request:
push:
branches:
- main
Expand All @@ -12,6 +13,7 @@ env:

jobs:
build-image:
if: github.event_name == 'push' || contains(github.event.*.labels.*.name, 'dependencies')
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -49,6 +51,7 @@ jobs:
type=sha
- name: Set up QEMU
if: matrix.platform != 'linux/amd64'
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
Expand Down Expand Up @@ -109,7 +112,7 @@ jobs:
retention-days: 1

merge-and-push-image:
if: github.repository_owner == 'onekey-sec'
if: github.repository_owner == 'onekey-sec' && github.event_name == 'push'
runs-on: ubuntu-latest
needs:
- build-image
Expand Down

0 comments on commit 748841b

Please sign in to comment.