-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (37 loc) · 1.09 KB
/
secret_cloner.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Secret Cloner
on:
push:
paths:
- 'hooks/secret_cloner/**'
jobs:
secc:
runs-on: ubuntu-latest
name: Build SQS configurator image
steps:
- name: checkout
id: checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: docker login
uses: docker/login-action@v1
with:
username: ${{ secrets.PUBLIC_DOCKER_USERNAME }}
password: ${{ secrets.PUBLIC_DOCKER_PASSWORD }}
# always uses a single image ,the changes are overridden
# to-do versioning of the builds in case required
- name: build configurator
uses: docker/build-push-action@v2
with:
tags: razorpay/devstack:sec
push: true
file: ./hooks/secret_cloner/Dockerfile