From 1d2bdb401a190fd019c30eb4608b95f156e090dc Mon Sep 17 00:00:00 2001 From: Annika Merris Date: Sun, 4 Feb 2024 13:19:42 -0500 Subject: [PATCH 1/2] Someday I'll Get This Sorted --- .forgejo/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 51affa5..753481f 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -64,7 +64,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: shell_command: /bin/ash -c - image: ${{ fromJSON(steps.meta.outputs.tags)[0] }} + image: ${{ fromJSON(steps.meta.outputs.json).tags[0] }} path: isl-api destination: dist - name: Create Release From 3017cc2d87f410a61f52fd44b574752e93e12529 Mon Sep 17 00:00:00 2001 From: Annika Merris Date: Sun, 4 Feb 2024 15:17:28 -0500 Subject: [PATCH 2/2] Trying Some Runner Tests --- .forgejo/debugging.yml | 38 -------------------------------- .forgejo/workflows/debugging.yml | 32 +++++++++++++++++++++++++++ .forgejo/workflows/release.yml | 8 +++---- 3 files changed, 36 insertions(+), 42 deletions(-) delete mode 100644 .forgejo/debugging.yml create mode 100644 .forgejo/workflows/debugging.yml diff --git a/.forgejo/debugging.yml b/.forgejo/debugging.yml deleted file mode 100644 index 1272723..0000000 --- a/.forgejo/debugging.yml +++ /dev/null @@ -1,38 +0,0 @@ ---- -name: release -on: - push: - -env: - DOCKER_HOST: tcp://docker-in-docker:2375 - -jobs: - build: - name: Build and push docker image - runs-on: docker - container: - image: node:21-alpine - steps: - - name: Install docker - shell: /bin/ash -e {0} - run: apk add --update docker git - - name: Check out the repo - uses: https://github.com/actions/checkout@v4 - - name: Get Metadata For Docker - id: meta - uses: https://github.com/docker/metadata-action@v5 - with: - images: forgejo.merr.is/${{ github.repository }} - tags: | - type=ref,event=branch - type=ref,event=pr - type=semver,pattern={{version}} - type=semver,pattern={{major}}.{{minor}} - labels: | - org.opencontainers.image.licenses=MIT - - name: Debugging steps.meta.outputs.tags - shell: /bin/ash -e {0} - run: echo "${{ steps.meta.outputs.tags }}" - - name: Debugging steps.meta.outputs.labels - shell: /bin/ash -e {0} - run: echo "${{ steps.meta.outputs.labels }}" diff --git a/.forgejo/workflows/debugging.yml b/.forgejo/workflows/debugging.yml new file mode 100644 index 0000000..3b1228d --- /dev/null +++ b/.forgejo/workflows/debugging.yml @@ -0,0 +1,32 @@ +--- +name: release +on: + push: + +env: + DOCKER_HOST: tcp://docker-in-docker:2375 + +jobs: + build: + name: Build and push docker image + runs-on: docker + container: + image: node:21-alpine + steps: + - name: Install docker + shell: /bin/ash -e {0} + run: apk add --update docker git + - name: Create Some Files + shell: /bin/ash -e {0} + run: | + mkdir -p /dist + touch /dist/test1 + touch /dist/test2 + - name: Check out the repo + uses: https://github.com/actions/checkout@v4 + - name: See If I Can Call My forgejo-release + uses: https://forge.merr.is/actions/forgejo-release@alpinev1 + with: + direction: upload + release-dir: /dist + diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 753481f..e9eca32 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Install docker shell: /bin/ash -e {0} - run: apk add --update docker git + run: apk add --update docker git bash - name: Check out the repo uses: https://github.com/actions/checkout@v4 - name: Get Metadata For Docker @@ -68,8 +68,8 @@ jobs: path: isl-api destination: dist - name: Create Release - uses: https://github.com/softprops/action-gh-release@v1 + uses: https://code.forgejo.org/actions/forgejo-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: | - dist/isl-api + direction: upload +