Skip to content

Commit 51e6961

Browse files
authored
Merge pull request #12 from OpenIPC/scope-docker-publish-to-master
ci: only publish the Docker image from master
2 parents c8b015f + c7d61b1 commit 51e6961

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎.github/workflows/main.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@ name: ci
22
on:
33
push:
44
branches:
5-
- "*"
5+
- master
66
workflow_dispatch:
77
jobs:
88
docker:
99
runs-on: ubuntu-latest
10+
# Publish only from master, even for manual workflow_dispatch runs, so a
11+
# dispatch from a feature branch can't overwrite the :latest image.
12+
if: github.ref == 'refs/heads/master'
1013
steps:
1114
- name: Set up QEMU
1215
uses: docker/setup-qemu-action@v1

0 commit comments

Comments
 (0)