File tree Expand file tree Collapse file tree 7 files changed +58
-8
lines changed Expand file tree Collapse file tree 7 files changed +58
-8
lines changed Original file line number Diff line number Diff line change
1
+ name : Build image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+ branches :
9
+ - main
10
+ types : [ opened, synchronize, reopened ]
11
+
12
+ permissions :
13
+ contents : read
14
+
15
+ jobs :
16
+ publish :
17
+ if : github.repository == 'crenshaw-dev/argocd-executor-plugin'
18
+ runs-on : ubuntu-22.04
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v3
22
+ - name : Set up QEMU
23
+ uses : docker/setup-qemu-action@v2
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@v2
26
+ - name : Login to Docker Hub
27
+ uses : docker/login-action@v2
28
+ with :
29
+ username : ${{ secrets.DOCKERHUB_USERNAME }}
30
+ password : ${{ secrets.DOCKERHUB_PASSWORD }}
31
+ - name : Build and push
32
+ uses : docker/build-push-action@v3
33
+ with :
34
+ context : .
35
+ push : ${{ github.event_name == 'push' }}
36
+ tags : crenshaw-dev/argocd-executor-plugin:latest
37
+ - name : Install cosign
38
+ uses : sigstore/cosign-installer@main
39
+ with :
40
+ cosign-release : ' v1.13.0'
41
+ if : ${{ github.event_name == 'push' }}
42
+ - name : Sign latest image
43
+ run : |
44
+ cosign sign --key env://COSIGN_PRIVATE_KEY crenshaw-dev/argocd-executor-plugin:latest
45
+ # Displays the public key to share.
46
+ cosign public-key --key env://COSIGN_PRIVATE_KEY
47
+ env :
48
+ COSIGN_PRIVATE_KEY : ${{secrets.COSIGN_PRIVATE_KEY}}
49
+ COSIGN_PASSWORD : ${{secrets.COSIGN_PASSWORD}}
50
+ if : ${{ github.event_name == 'push' }}
Original file line number Diff line number Diff line change 7
7
.PHONY : build
8
8
build :
9
9
go mod tidy
10
- docker build --load -t urielc12 /argocd-plugin:local -f ./Dockerfile .
11
- kind load docker-image urielc12 /argocd-plugin:local --name argo-workflows-plugin-argocd
10
+ docker build --load -t crenshaw-dev /argocd-executor- plugin:latest -f ./Dockerfile .
11
+ kind load docker-image crenshaw-dev /argocd-executor- plugin:latest --name argo-workflows-plugin-argocd
12
12
13
13
.PHONY : manifests
14
14
manifests :
Original file line number Diff line number Diff line change 6
6
7
7
"github.com/argoproj/argo-cd/v2/pkg/apiclient"
8
8
9
- "github.com/UrielCohen456/argo-workflows- argocd-executor-plugin/internal"
9
+ "github.com/crenshaw-dev/ argocd-executor-plugin/internal"
10
10
)
11
11
12
12
func main () {
@@ -22,4 +22,4 @@ func main() {
22
22
if err != nil {
23
23
panic (err .Error ())
24
24
}
25
- }
25
+ }
Original file line number Diff line number Diff line change 1
- module github.com/UrielCohen456/argo-workflows- argocd-executor-plugin
1
+ module github.com/crenshaw-dev/ argocd-executor-plugin
2
2
3
3
go 1.19
4
4
Original file line number Diff line number Diff line change 2
2
# argocd
3
3
4
4
* Needs: >= v3.3
5
- * Image: urielc12 /argocd-plugin: local
5
+ * Image: crenshaw-dev /argocd-executor- plugin: latest
6
6
7
7
This is an Argo CD plugin that allows you to interact with an argocd instance of your choice.
8
8
For examples visit https://github.com/UrielCohen456/argo-workflows-argocd-executor-plugin/examples
Original file line number Diff line number Diff line change 11
11
name: argocd-sync-token
12
12
- name: ARGOCD_SERVER
13
13
value: argocd-server.argocd.svc.cluster.local
14
- image: urielc12 /argocd-plugin:local
14
+ image: crenshaw-dev /argocd-executor- plugin:latest
15
15
imagePullPolicy: Never
16
16
name: argocd
17
17
ports:
Original file line number Diff line number Diff line change 11
11
sidecar :
12
12
container :
13
13
name : argocd
14
- image : urielc12 /argocd-plugin:local
14
+ image : crenshaw-dev /argocd-executor- plugin:latest
15
15
imagePullPolicy : Never
16
16
env :
17
17
- name : ARGOCD_AUTH_TOKEN
You can’t perform that action at this time.
0 commit comments