Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
1a97192036 | |||
41255b0b3b | |||
5a0f9cd399 | |||
f3bca76866 | |||
11741c0c50 | |||
c7f3b79296 | |||
0c85920ddc | |||
e201832273 | |||
f2e4084aab | |||
e6fc1a1127 | |||
b73a3e7bfb | |||
a2c31f1831 | |||
2d60f5aece | |||
43d0b2f3d1 |
@ -20,10 +20,8 @@ steps:
|
||||
|
||||
commands:
|
||||
- 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 .
|
||||
- /tmp/goreleaser-download release --rm-dist
|
||||
- curl -sfL https://goreleaser.com/static/run | bash -s -- release --clean
|
||||
|
||||
trigger:
|
||||
event:
|
||||
|
@ -1,14 +1,16 @@
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
version: 2
|
||||
|
||||
before:
|
||||
hooks:
|
||||
# you may remove this if you don't use vgo
|
||||
- sudo apt update
|
||||
- sudo apt install rpm
|
||||
- go mod tidy
|
||||
- go mod download
|
||||
- go generate ./...
|
||||
|
||||
builds:
|
||||
-
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
flags:
|
||||
- -trimpath
|
||||
goos:
|
||||
@ -18,18 +20,7 @@ builds:
|
||||
- amd64
|
||||
|
||||
archives:
|
||||
-
|
||||
format: zip
|
||||
|
||||
snapshot:
|
||||
name_template: "{{ .Tag }}-next"
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- '^docs:'
|
||||
- '^test:'
|
||||
- format: zip
|
||||
|
||||
nfpms:
|
||||
-
|
||||
@ -40,7 +31,7 @@ nfpms:
|
||||
|
||||
# Your app's homepage.
|
||||
# Default is empty.
|
||||
#homepage: https://example.com/
|
||||
homepage: https://blog.kazu634.com/
|
||||
|
||||
# Your app's maintainer (probably you).
|
||||
# Default is empty.
|
||||
@ -57,21 +48,31 @@ release:
|
||||
name: moneyforward
|
||||
|
||||
disable: false
|
||||
mode: append
|
||||
|
||||
gitea_urls:
|
||||
api: https://gitea.kazu634.com/api/v1/
|
||||
download: https://gitea.kazu634.com
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^test:"
|
||||
|
||||
dockers:
|
||||
-
|
||||
image_templates:
|
||||
- reg.kazu634.com/kazu634/{{ .ProjectName }}:{{ .Tag }}
|
||||
- reg.kazu634.com/kazu634/{{ .ProjectName }}:latest
|
||||
- reg.kazu634.com/kazu634/{{ .ProjectName }}:{{ .Tag }}
|
||||
- reg.kazu634.com/kazu634/{{ .ProjectName }}:latest
|
||||
|
||||
goos: linux
|
||||
goarch: amd64
|
||||
|
||||
dockerfile: Dockerfile
|
||||
|
||||
skip_push: false
|
||||
|
||||
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 && \
|
||||
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
|
||||
apk del tzdata
|
||||
ENV TZ='Asia/Tokyo'
|
||||
|
||||
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
|
||||
|
||||
CMD ["/usr/local/bin/moneyforward"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user