Skip to content

Commit

Permalink
Add workflows to build Mailroom images
Browse files Browse the repository at this point in the history
  • Loading branch information
cicerow-weni authored and jcbalmeida committed Sep 30, 2021
1 parent 8b049aa commit 21840e4
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-develop-india-mailroom.yaml
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
37 changes: 37 additions & 0 deletions .github/workflows/build-develop-ireland-mailroom.yaml
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

0 comments on commit 21840e4

Please sign in to comment.