File tree 3 files changed +33
-2
lines changed
3 files changed +33
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and publish new docker image
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v4
14
+
15
+ - name : Login to docker hub
16
+ if : success()
17
+ uses : actions-hub/docker/login@master
18
+ env :
19
+ DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
20
+ DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
21
+ DOCKER_REGISTRY_URL : ghcr.io
22
+
23
+ - name : Build image
24
+ if : success()
25
+ run : docker build -t ghcr.io/${GITHUB_REPOSITORY}/cli:${IMAGE_TAG} .
26
+
27
+ - name : Push to docker registry
28
+ if : success()
29
+ uses : actions-hub/docker/cli@master
30
+ with :
31
+ args : push ghcr.io/${GITHUB_REPOSITORY}/cli:${IMAGE_TAG}
Original file line number Diff line number Diff line change 6
6
kustomize :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- - uses : actions/checkout@v3
9
+ - uses : actions/checkout@v4
10
10
- run : |
11
11
echo 'configMapGenerator:
12
12
- name: example
Original file line number Diff line number Diff line change 88
88
tag_name : ${{ steps.modify.outputs.tag }}
89
89
release_name : ${{ steps.modify.outputs.tag }}
90
90
draft : false
91
- prerelease : false
91
+ prerelease : false
You can’t perform that action at this time.
0 commit comments