Skip to content

Commit 49a4ec5

Browse files
CIcrenshaw-dev
authored andcommitted
automated build
fix default branch
1 parent 8aee756 commit 49a4ec5

File tree

7 files changed

+60
-8
lines changed

7 files changed

+60
-8
lines changed

.github/workflows/build.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
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+
env:
20+
GOPATH: /home/runner/work/argo-cd/argo-cd
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v3
24+
- name: Set up QEMU
25+
uses: docker/setup-qemu-action@v2
26+
- name: Set up Docker Buildx
27+
uses: docker/setup-buildx-action@v2
28+
- name: Login to Docker Hub
29+
uses: docker/login-action@v2
30+
with:
31+
username: ${{ secrets.DOCKERHUB_USERNAME }}
32+
password: ${{ secrets.DOCKERHUB_TOKEN }}
33+
- name: Build and push
34+
uses: docker/build-push-action@v3
35+
with:
36+
context: .
37+
push: ${{ github.event_name == 'push' }}
38+
tags: crenshaw-dev/argocd-executor-plugin:latest
39+
- name: Install cosign
40+
uses: sigstore/cosign-installer@main
41+
with:
42+
cosign-release: 'v1.13.0'
43+
if: ${{ github.event_name == 'push' }}
44+
- name: Sign latest image
45+
run: |
46+
cosign sign --key env://COSIGN_PRIVATE_KEY crenshaw-dev/argocd-executor-plugin:latest
47+
# Displays the public key to share.
48+
cosign public-key --key env://COSIGN_PRIVATE_KEY
49+
env:
50+
COSIGN_PRIVATE_KEY: ${{secrets.COSIGN_PRIVATE_KEY}}
51+
COSIGN_PASSWORD: ${{secrets.COSIGN_PASSWORD}}
52+
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)