This repository was archived by the owner on May 23, 2023. It is now read-only.
File tree 5 files changed +13
-5
lines changed
5 files changed +13
-5
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 :
4
+ - id : vshn-postgres
5
+ main : ./cmd/vshn-postgres-func
6
+ env :
5
7
- CGO_ENABLED=0 # this is needed otherwise the Docker image build is faulty
6
8
goarch :
7
9
- amd64
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