Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabled build on PR push #13

Merged
merged 3 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
env:
GIT_TAG: ${{ github.ref_name }}
GH_TOKEN: ${{ github.token }}
run: earthly -ci --push --secret GH_TOKEN +release --GIT_TAG="$GIT_TAG"
run: earthly --ci --push --secret GH_TOKEN +release --GIT_TAG="$GIT_TAG"
12 changes: 10 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ jobs:
# renovate: earthly-version
version: v0.8.4
- name: Lint Go code
run: earthly -ci +lint --OUTPUT_FORMAT=github-actions
run: earthly --ci +lint --OUTPUT_FORMAT=github-actions
- name: Run Go tests
run: earthly -ci +test --OUTPUT_FORMAT=github-actions
run: earthly --ci +test --OUTPUT_FORMAT=github-actions
- name: Run a build
run: |
# Generate a fake git tag
GIT_TAG=$(git describe --tags --match "v[[:digit:]]*.[[:digit:]]*.[[:digit:]]" | sed 's/\(.*\)-\(.*\)-\(.*\)/\1-gen.\2+\3/')
earthly --ci --output +all --GIT_TAG="$GIT_TAG"
echo "Build outputs"
find outputs -type f -exec ls -lh "{}" \;
docker image ls gha-exporter
Loading