Compare commits

..

No commits in common. "main" and "v0.0.1" have entirely different histories.
main ... v0.0.1

3 changed files with 28 additions and 31 deletions

View File

@ -8,7 +8,7 @@ steps:
- git fetch --tags - git fetch --tags
- name: build - name: build
image: cimg/go:1.22.6 image: cimg/go
volumes: volumes:
- name: dockersock - name: dockersock
@ -20,8 +20,10 @@ 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 .
- curl -sfL https://goreleaser.com/static/run | bash -s -- release --clean - /tmp/goreleaser-download release --rm-dist
trigger: trigger:
event: event:

View File

@ -1,16 +1,14 @@
version: 2 env:
- CGO_ENABLED=0
before: before:
hooks: hooks:
- sudo apt update # you may remove this if you don't use vgo
- 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:
@ -20,7 +18,18 @@ builds:
- amd64 - amd64
archives: archives:
- format: zip -
format: zip
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpms: nfpms:
- -
@ -31,7 +40,7 @@ nfpms:
# Your app's homepage. # Your app's homepage.
# Default is empty. # Default is empty.
homepage: https://blog.kazu634.com/ #homepage: https://example.com/
# Your app's maintainer (probably you). # Your app's maintainer (probably you).
# Default is empty. # Default is empty.
@ -48,31 +57,21 @@ 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 Executable file → Normal file
View File

@ -1,13 +1,9 @@
FROM ubuntu:24.04 FROM alpine:latest
ENV TZ='Asia/Tokyo' RUN apk add --no-cache libc6-compat tzdata && \
cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime && \
RUN apt update && apt install -y wget apk del tzdata
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"]