From 79f10965b8461983cf482d71ad5292174892c0ae Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 1 Dec 2023 10:44:08 +0100 Subject: [PATCH 1/5] release on tag --- .github/workflows/ci-tag.yml | 21 +++++++++++++++++++++ Earthfile | 6 +++--- 2 files changed, 24 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci-tag.yml diff --git a/.github/workflows/ci-tag.yml b/.github/workflows/ci-tag.yml new file mode 100644 index 0000000..28fa647 --- /dev/null +++ b/.github/workflows/ci-tag.yml @@ -0,0 +1,21 @@ +on: + push: + tags: + - 'v*.*.*' +jobs: + test: + runs-on: ubuntu-latest + env: + FORCE_COLOR: 1 + EARTHLY_CONVERSION_PARALLELISM: "5" + EARTHLY_TOKEN: "${{ secrets.EARTHLY_TOKEN }}" + EARTHLY_INSTALL_ID: "earthly-lib-githubactions" + steps: + - uses: actions/checkout@v2 + - name: Set env + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV + - uses: earthly/actions/setup-earthly@v1 + - uses: actions/checkout@v2 + - name: Release + run: |- + earthly --org earthly-technologies --satellite lib --push +publish --version=$RELEASE_VERSION \ No newline at end of file diff --git a/Earthfile b/Earthfile index 8f6c249..553c095 100644 --- a/Earthfile +++ b/Earthfile @@ -1,11 +1,11 @@ -VERSION 0.6 +VERSION 0.7 ARG gradle_version=8.2.1 FROM gradle:${gradle_version}-jdk17 RUN apt-get update && apt-get install -y \ zip \ && rm -rf /var/lib/apt/lists/* -ARG version=0.0.0 -ARG bundle="github.com/earthly/earthfile-grammar+export/" +ARG --global version=0.0.0 +ARG --global bundle="github.com/earthly/earthfile-grammar+export/" COPY settings.gradle.kts build.gradle.kts ./ COPY scripts scripts COPY src src From 98f165f9c4798cdb7867115e5c51976eed02d767 Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 1 Dec 2023 10:45:04 +0100 Subject: [PATCH 2/5] release on tag --- .github/workflows/ci-tag.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tag.yml b/.github/workflows/ci-tag.yml index 28fa647..42eb7bd 100644 --- a/.github/workflows/ci-tag.yml +++ b/.github/workflows/ci-tag.yml @@ -12,10 +12,8 @@ jobs: EARTHLY_INSTALL_ID: "earthly-lib-githubactions" steps: - uses: actions/checkout@v2 + - uses: earthly/actions/setup-earthly@v1 - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV - - uses: earthly/actions/setup-earthly@v1 - - uses: actions/checkout@v2 - name: Release - run: |- - earthly --org earthly-technologies --satellite lib --push +publish --version=$RELEASE_VERSION \ No newline at end of file + run: earthly --org earthly-technologies --satellite lib --push +publish --version=$RELEASE_VERSION \ No newline at end of file From 7a4198d9eabe1813274b81d8add78d7d2a31ccd8 Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 1 Dec 2023 19:09:41 +0100 Subject: [PATCH 3/5] add contributing section --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 80e5557..d8cfaaf 100644 --- a/README.md +++ b/README.md @@ -46,3 +46,19 @@ earthly --push +publish --version= ``` earthly +ide ``` + +## Contributing + +### Code of Conduct + +Please refer to the [CNCF Community Code of Conduct v1.0](https://github.com/cncf/foundation/blob/main/code-of-conduct.md) + +### CLA + +#### Individual + +All contributions must indicate agreement to the [Earthly Contributor License Agreement](https://gist.github.com/vladaionescu/ed990fa149a38a53ac74b64155bc6766) by logging into GitHub via the CLA assistant and signing the provided CLA. The CLA assistant will automatically notify the PRs that require CLA signing. + +#### Entity + +If you are an entity, please use the [Earthly Contributor License Agreement form](https://earthly.dev/cla-form) in addition to requiring your individual contributors to sign all contributions. \ No newline at end of file From 09adf7a207a678651796c72b4d607e177ada0755 Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 1 Dec 2023 19:11:12 +0100 Subject: [PATCH 4/5] set test command --- .github/workflows/ci-tag.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-tag.yml b/.github/workflows/ci-tag.yml index 42eb7bd..5b765fc 100644 --- a/.github/workflows/ci-tag.yml +++ b/.github/workflows/ci-tag.yml @@ -16,4 +16,6 @@ jobs: - name: Set env run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV - name: Release - run: earthly --org earthly-technologies --satellite lib --push +publish --version=$RELEASE_VERSION \ No newline at end of file +# run: earthly --org earthly-technologies --satellite lib --push +publish --version=$RELEASE_VERSION + # For testing purposes lets use +build before trying +publish + run: earthly --org earthly-technologies --satellite lib --push +build --version=$RELEASE_VERSION \ No newline at end of file From eaac113f404fd4d9c39cc844bd3b8a2e132f2f5c Mon Sep 17 00:00:00 2001 From: nacho Date: Fri, 1 Dec 2023 19:18:28 +0100 Subject: [PATCH 5/5] add line --- .github/workflows/ci-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci-tag.yml b/.github/workflows/ci-tag.yml index 5b765fc..4c0c73d 100644 --- a/.github/workflows/ci-tag.yml +++ b/.github/workflows/ci-tag.yml @@ -18,4 +18,4 @@ jobs: - name: Release # run: earthly --org earthly-technologies --satellite lib --push +publish --version=$RELEASE_VERSION # For testing purposes lets use +build before trying +publish - run: earthly --org earthly-technologies --satellite lib --push +build --version=$RELEASE_VERSION \ No newline at end of file + run: earthly --org earthly-technologies --satellite lib --push +build --version=$RELEASE_VERSION