mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
ci: 限制Docker镜像推送和CNB.cool同步任务仅在主仓库执行 (#1150)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
parent
4cc267146a
commit
37aa18e09f
@ -35,5 +35,5 @@ jobs:
|
||||
context: "{{defaultContext}}:tools"
|
||||
file: Dockerfile
|
||||
platforms: linux/amd64
|
||||
push: true
|
||||
push: ${{ github.repository == 'DragonOS-Community/DragonOS' }}
|
||||
tags: dragonos/dragonos-dev:${{ steps.fetch-versions.outputs.build_container_version }}
|
||||
|
1
.github/workflows/sync-to-cnb.yml
vendored
1
.github/workflows/sync-to-cnb.yml
vendored
@ -3,6 +3,7 @@ on: [push]
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
if: github.repository == 'DragonOS-Community/DragonOS'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
Loading…
x
Reference in New Issue
Block a user