forked from rapidpro/mailroom
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflows to build Mailroom images
- Loading branch information
1 parent
8b049aa
commit 21840e4
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build Develop India Mailroom | ||
on: | ||
push: | ||
branches: | ||
- 'feature/build' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: develop-india | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: feature/build | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Set output | ||
id: vars | ||
run: echo ::set-output name=tag::develop-v6.5.6 | ||
- name: Login to ECR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: 242357350604.dkr.ecr.ap-south-1.amazonaws.com | ||
username: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Build and push - Mailroom Image | ||
id: docker_build1 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
push: true | ||
tags: 242357350604.dkr.ecr.ap-south-1.amazonaws.com/mailroom:${{ steps.vars.outputs.tag }} | ||
no-cache: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build Develop Ireland Mailroom | ||
on: | ||
push: | ||
branches: | ||
- 'feature/build' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: develop-ireland | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: feature/build | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
- name: Set output | ||
id: vars | ||
run: echo ::set-output name=tag::develop-v6.5.6 | ||
- name: Login to ECR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: 452158872079.dkr.ecr.eu-west-1.amazonaws.com | ||
username: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
- name: Build and push - Mailroom Image | ||
id: docker_build1 | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: docker/Dockerfile | ||
push: true | ||
tags: 452158872079.dkr.ecr.eu-west-1.amazonaws.com/mailroom:${{ steps.vars.outputs.tag }} | ||
no-cache: true |