This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree 5 files changed +24
-10
lines changed
5 files changed +24
-10
lines changed Original file line number Diff line number Diff line change 40
40
username : ${{ github.repository_owner }}
41
41
password : ${{ secrets.GITHUB_TOKEN }}
42
42
43
+ - name : Push docker image
44
+ run : make docker-push -e IMG_TAG=${GITHUB_REF##*/}
45
+
43
46
- name : Build changelog from PRs with labels
44
47
id : build_changelog
45
48
uses : mikepenz/release-changelog-builder-action@v3
57
60
uses : goreleaser/goreleaser-action@v4
58
61
with :
59
62
args : release --release-notes .github/release-notes.md
60
- workdir : ./cmd/vshn-postgres-func
61
63
env :
62
64
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63
65
REGISTRY : ghcr.io
64
- IMAGE_NAME : ${{ github.repository }}
66
+ IMAGE_NAME : ${{ github.repository }}/vshn-postgres-func
Original file line number Diff line number Diff line change 1
1
# This is an example goreleaser.yaml file with some sane defaults.
2
2
# Make sure to check the documentation at http://goreleaser.com
3
3
builds :
4
- - env :
5
- - CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
4
+ - id : vshn-postgres
5
+ main : ./cmd/vshn-postgres-func
6
+ dir : .
7
+ binary : ./vshn-postgres-func
8
+ env :
9
+ - CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
6
10
goarch :
7
- - amd64
8
- - arm64
11
+ - amd64
12
+ - arm64
9
13
goos :
10
- - linux
14
+ - linux
11
15
goarm :
12
- - " 8"
16
+ - " 8"
13
17
14
18
archives :
15
19
- format : binary
@@ -28,13 +32,17 @@ dockers:
28
32
- " --platform=linux/amd64"
29
33
image_templates :
30
34
- " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-amd64"
35
+ extra_files :
36
+ - ../../.
31
37
32
38
- goarch : arm64
33
39
use : buildx
34
40
build_flag_templates :
35
41
- " --platform=linux/arm64/v8"
36
42
image_templates :
37
43
- " {{ .Env.REGISTRY }}/{{ .Env.IMAGE_NAME }}:v{{ .Version }}-arm64"
44
+ extra_files :
45
+ - ../../.
38
46
39
47
docker_manifests :
40
48
# # ghcr.io
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ ARG INSTANCE=""
5
5
WORKDIR /app
6
6
7
7
COPY . ./
8
- RUN go mod download
8
+ RUN echo $(ls -a) && go mod download
9
9
10
10
RUN cd "cmd/$INSTANCE" && CGO_ENABLED=0 go build -o functionio .
11
11
Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ clean: recursive_target=.clean-build-img
85
85
clean : $(instances )
86
86
rm -rf docs/node_modules $(docs_out_dir ) dist .cache $(WORK_DIR )
87
87
88
+ .PHONY : docker-push
89
+ docker-push : build-docker # # Push docker image with the manager.
90
+ docker push $(CONTAINER_IMG )
91
+
88
92
.PHONY : .clean-build-img
89
93
.clean-build-img :
90
94
docker rmi $(CONTAINER_IMG ) -f || true
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ DOCKER_CMD ?= docker
22
22
# # BUILD:docker VSHN Postgres
23
23
IMG_TAG ?= latest
24
24
# Image URL to use all building/pushing image targets
25
- CONTAINER_IMG ?= ghcr.io/$(PROJECT_OWNER ) /$(BIN_FILENAME ) :$(IMG_TAG )
25
+ CONTAINER_IMG ?= ghcr.io/$(PROJECT_OWNER ) /$(PROJECT_NAME ) / $( BIN_FILENAME ) :$(IMG_TAG )
26
26
27
27
28
28
# # KIND:setup
You can’t perform that action at this time.
0 commit comments