Skip to content

Commit b1cad20

Browse files
authored
automated build
automated build
2 parents 8aee756 + d0fb58d commit b1cad20

File tree

7 files changed

+58
-8
lines changed

7 files changed

+58
-8
lines changed

.github/workflows/build.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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' }}

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ setup:
77
.PHONY: build
88
build:
99
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
1212

1313
.PHONY: manifests
1414
manifests:

cmd/argocd-plugin/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66

77
"github.com/argoproj/argo-cd/v2/pkg/apiclient"
88

9-
"github.com/UrielCohen456/argo-workflows-argocd-executor-plugin/internal"
9+
"github.com/crenshaw-dev/argocd-executor-plugin/internal"
1010
)
1111

1212
func main() {
@@ -22,4 +22,4 @@ func main() {
2222
if err != nil {
2323
panic(err.Error())
2424
}
25-
}
25+
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/UrielCohen456/argo-workflows-argocd-executor-plugin
1+
module github.com/crenshaw-dev/argocd-executor-plugin
22

33
go 1.19
44

manifests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# argocd
33

44
* Needs: >= v3.3
5-
* Image: urielc12/argocd-plugin:local
5+
* Image: crenshaw-dev/argocd-executor-plugin:latest
66

77
This is an Argo CD plugin that allows you to interact with an argocd instance of your choice.
88
For examples visit https://github.com/UrielCohen456/argo-workflows-argocd-executor-plugin/examples

manifests/argocd-executor-plugin-configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ data:
1111
name: argocd-sync-token
1212
- name: ARGOCD_SERVER
1313
value: argocd-server.argocd.svc.cluster.local
14-
image: urielc12/argocd-plugin:local
14+
image: crenshaw-dev/argocd-executor-plugin:latest
1515
imagePullPolicy: Never
1616
name: argocd
1717
ports:

manifests/plugin.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
sidecar:
1212
container:
1313
name: argocd
14-
image: urielc12/argocd-plugin:local
14+
image: crenshaw-dev/argocd-executor-plugin:latest
1515
imagePullPolicy: Never
1616
env:
1717
- name: ARGOCD_AUTH_TOKEN

0 commit comments

Comments
 (0)