Skip to content

Commit 3084018

Browse files
authored
Merge pull request #11 from firefox-devtools/add-container-publication-workflow
Publish container from GH Actions
2 parents 5f8dc68 + e052ba7 commit 3084018

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflow/cd.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Continuous Deployment
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
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

Comments
 (0)