Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

Commit

Permalink
fix: release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
korosuke613 committed Mar 21, 2021
1 parent 56ca78c commit 49660ad
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Release

on:
push:
tags:
Expand All @@ -22,4 +24,4 @@ jobs:
- name: Earthly version
run: earthly --version
- name: Run lint
run: earthly --ci --use-inline-cache --push +release
run: earthly --secret GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} --ci --use-inline-cache --push +release
7 changes: 5 additions & 2 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,19 @@ build:
goreleaser-setup:
FROM +deps
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
RUN mv ./bin/goreleaser /usr/local/bin/goreleaser
COPY . /work
RUN git reset --hard HEAD


release-dryrun:
FROM +goreleaser-setup
RUN ./bin/goreleaser --snapshot --skip-publish --rm-dist
RUN goreleaser --snapshot --skip-publish --rm-dist
SAVE ARTIFACT dist AS LOCAL build/dist

release:
FROM +goreleaser-setup
RUN --push --secret GITHUB_TOKEN=+secrets/GITHUB_TOKEN ./bin/goreleaser release
RUN --push --secret GITHUB_TOKEN=+secrets/GITHUB_TOKEN goreleaser release

docker:
FROM gcr.io/distroless/base
Expand Down

0 comments on commit 49660ad

Please sign in to comment.