-
Notifications
You must be signed in to change notification settings - Fork 35
38 lines (35 loc) · 870 Bytes
/
gha.yml
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
env:
version: 1.20.2 #artifact version
name: nginx
on:
push:
paths-ignore:
- 'nginx/**'
- '**/README.md'
branches:
- 'main'
tags:
- 'v*.*.*'
pull_request:
branches:
- 'main'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
uses: imranismail/setup-kustomize@v1
-
name: Kustomize
run: |
cd nginx/env/stage
kustomize edit set nameprefix $(echo ${GITHUB_ACTOR}- | tr '[:upper:]' '[:lower:]')
kustomize edit set image library/nginx:${{ env.version }}
git config --global user.name "Commit Bot"
git config --global user.email "no-reply@akuity.io"
git add .
git commit -m "Set library/nginx image tag to ${{ env.version }}"
git push