chroe: add earthly #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Commit check | |
on: | |
push: | |
branches: | |
- master | |
env: | |
COMMIT_OWNER: ${{ github.event.pusher.name }} | |
COMMIT_SHA: ${{ github.sha }} | |
PIPELINE_ID: ${{ github.run_number }} | |
FORCE_COLOR: 1 | |
jobs: | |
commit: | |
name: commit | |
runs-on: ubuntu-latest | |
steps: | |
- uses: earthly/actions-setup@v1 | |
with: | |
version: "latest" | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: check | |
run: | | |
earthly --ci --allow-privileged +ci-check \ | |
--PIPELINE_ID=${{ env.PIPELINE_ID }} | |
- name: write private key | |
run: echo "${{ secrets.GPG_PRIVATE_KEY }}" >> gpg_private_key | |
- name: publish | |
run: | | |
earthly --ci --allow-privileged --push \ | |
--secret GPG_PASSPHRASE=${{ secrets.GPG_PASSPHRASE }} \ | |
--secret OSSRH_TOKEN_USERNAME=${{ secrets.OSSRH_TOKEN_USERNAME }} \ | |
--secret OSSRH_TOKEN_PASSWORD=${{ secrets.OSSRH_TOKEN_PASSWORD }} \ | |
+ci-publish \ | |
--PIPELINE_ID=${{ env.PIPELINE_ID }} |