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 +