We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f8dc68 + e052ba7 commit 3084018Copy full SHA for 3084018
.github/workflow/cd.yaml
@@ -0,0 +1,21 @@
1
+name: Continuous Deployment
2
+
3
+on:
4
+ pull_request:
5
+ branches:
6
+ - main
7
+ push:
8
9
10
+ tags:
11
+ - v[0-9]+.[0-9]+.[0-9]+
12
13
+jobs:
14
+ build-and-publish:
15
+ name: Build and publish the container image
16
+ uses: mozilla/remote-settings/actions/ingestion-job-publish@main
17
+ with:
18
+ # Publish `main` branch to `nonprod` and tags to `prod`
19
+ realm: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') && 'prod' || 'nonprod' }}
20
+ # Build but do not publish the container on pull-requests
21
+ publish: ${{ github.event_name != 'pull_request' }}
0 commit comments