Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
1a97192036 | |||
41255b0b3b | |||
5a0f9cd399 | |||
f3bca76866 | |||
11741c0c50 | |||
c7f3b79296 | |||
0c85920ddc | |||
e201832273 | |||
f2e4084aab | |||
e6fc1a1127 | |||
b73a3e7bfb | |||
a2c31f1831 | |||
2d60f5aece | |||
43d0b2f3d1 | |||
8fd8f9376f |
@ -8,7 +8,7 @@ steps:
|
|||||||
- git fetch --tags
|
- git fetch --tags
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: cimg/go
|
image: cimg/go:1.22.6
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
@ -20,10 +20,8 @@ steps:
|
|||||||
|
|
||||||
commands:
|
commands:
|
||||||
- sudo chmod 666 /var/run/docker.sock
|
- sudo chmod 666 /var/run/docker.sock
|
||||||
- curl -sL https://git.io/goreleaser -o /tmp/goreleaser-download
|
|
||||||
- chmod +x /tmp/goreleaser-download
|
|
||||||
- sudo chown -R circleci:circleci .
|
- sudo chown -R circleci:circleci .
|
||||||
- /tmp/goreleaser-download release --rm-dist
|
- curl -sfL https://goreleaser.com/static/run | bash -s -- release --clean
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
|
@ -1,14 +1,16 @@
|
|||||||
env:
|
version: 2
|
||||||
- CGO_ENABLED=0
|
|
||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
# you may remove this if you don't use vgo
|
- sudo apt update
|
||||||
- sudo apt install rpm
|
- sudo apt install rpm
|
||||||
|
- go mod tidy
|
||||||
- go mod download
|
- go mod download
|
||||||
|
- go generate ./...
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
-
|
- env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
flags:
|
flags:
|
||||||
- -trimpath
|
- -trimpath
|
||||||
goos:
|
goos:
|
||||||
@ -18,18 +20,7 @@ builds:
|
|||||||
- amd64
|
- amd64
|
||||||
|
|
||||||
archives:
|
archives:
|
||||||
-
|
- format: zip
|
||||||
format: zip
|
|
||||||
|
|
||||||
snapshot:
|
|
||||||
name_template: "{{ .Tag }}-next"
|
|
||||||
|
|
||||||
changelog:
|
|
||||||
sort: asc
|
|
||||||
filters:
|
|
||||||
exclude:
|
|
||||||
- '^docs:'
|
|
||||||
- '^test:'
|
|
||||||
|
|
||||||
nfpms:
|
nfpms:
|
||||||
-
|
-
|
||||||
@ -40,7 +31,7 @@ nfpms:
|
|||||||
|
|
||||||
# Your app's homepage.
|
# Your app's homepage.
|
||||||
# Default is empty.
|
# Default is empty.
|
||||||
#homepage: https://example.com/
|
homepage: https://blog.kazu634.com/
|
||||||
|
|
||||||
# Your app's maintainer (probably you).
|
# Your app's maintainer (probably you).
|
||||||
# Default is empty.
|
# Default is empty.
|
||||||
@ -57,21 +48,31 @@ release:
|
|||||||
name: moneyforward
|
name: moneyforward
|
||||||
|
|
||||||
disable: false
|
disable: false
|
||||||
|
mode: append
|
||||||
|
|
||||||
gitea_urls:
|
gitea_urls:
|
||||||
api: https://gitea.kazu634.com/api/v1/
|
api: https://gitea.kazu634.com/api/v1/
|
||||||
download: https://gitea.kazu634.com
|
download: https://gitea.kazu634.com
|
||||||
|
|
||||||
|
changelog:
|
||||||
|
sort: asc
|
||||||
|
filters:
|
||||||
|
exclude:
|
||||||
|
- "^docs:"
|
||||||
|
- "^test:"
|
||||||
|
|
||||||
dockers:
|
dockers:
|
||||||
-
|
-
|
||||||
image_templates:
|
image_templates:
|
||||||
- reg.kazu634.com/kazu634/{{ .ProjectName }}:{{ .Tag }}
|
- reg.kazu634.com/kazu634/{{ .ProjectName }}:{{ .Tag }}
|
||||||
- reg.kazu634.com/kazu634/{{ .ProjectName }}:latest
|
- reg.kazu634.com/kazu634/{{ .ProjectName }}:latest
|
||||||
|
|
||||||
goos: linux
|
goos: linux
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
|
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
|
|
||||||
|
skip_push: false
|
||||||
|
|
||||||
push_flags:
|
push_flags:
|
||||||
- --tls-verify=false
|
- --tls-verify=false
|
||||||
|
12
Dockerfile
Normal file → Executable file
12
Dockerfile
Normal file → Executable file
@ -1,9 +1,13 @@
|
|||||||
FROM alpine:latest
|
FROM ubuntu:24.04
|
||||||
|
|
||||||
RUN apk add --no-cache libc6-compat tzdata && \
|
ENV TZ='Asia/Tokyo'
|
||||||
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
|
|
||||||
apk del tzdata
|
RUN apt update && apt install -y wget
|
||||||
|
|
||||||
|
WORKDIR /tmp
|
||||||
|
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && apt install -y ./google-chrome-stable_current_amd64.deb
|
||||||
|
|
||||||
ADD ./moneyforward /usr/local/bin/moneyforward
|
ADD ./moneyforward /usr/local/bin/moneyforward
|
||||||
|
|
||||||
CMD ["/usr/local/bin/moneyforward"]
|
CMD ["/usr/local/bin/moneyforward"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user