diff --git a/.docker/build/Dockerfile b/.docker/build/Dockerfile new file mode 100644 index 0000000..143d803 --- /dev/null +++ b/.docker/build/Dockerfile @@ -0,0 +1,3 @@ +FROM alpine:latest + +RUN apk add --no-cache curl git git-lfs zip unzip docker npm nodejs diff --git a/.docker/latest/Dockerfile b/.docker/latest/Dockerfile index cabfe9a..b09b037 100644 --- a/.docker/latest/Dockerfile +++ b/.docker/latest/Dockerfile @@ -1,4 +1 @@ FROM alpine:latest - -RUN apk add --no-cache curl nano git git-lfs zip unzip docker nodejs npm && \ - npm install --global yarn pnpm \ No newline at end of file diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 200891d..b440617 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -9,43 +9,44 @@ on: env: REGISTRY: forge.niblock.tech - REGISTRY_USERNAME: ${{ github.actor }} + REGISTRY_USERNAME: niblock REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }} - REGISTRY_IMAGE_NAME: ${{ github.repository }} jobs: release: name: Release runs-on: docker + container: + image: forge.niblock.tech/containers/alpine:build steps: - name: Checkout the repository uses: actions/checkout@v4 - - name: Setup Buildx - uses: https://code.forgejo.org/docker/setup-buildx-action@v3 + # - name: Setup Buildx + # uses: https://code.forgejo.org/docker/setup-buildx-action@v3 - - name: Build - run: | - buildx build .docker/latest + # - name: Build + # run: | + # buildx build .docker/latest - # - name: Login to the NibTech Container Registry - # uses: https://code.forgejo.org/docker/login-action@v3 - # with: - # registry: ${{ env.REGISTRY }} - # username: ${{ env.REGISTRY_USERNAME }} - # password: ${{ env.REGISTRY_PASSWORD }} + - name: Login to the NibTech Container Registry + uses: https://code.forgejo.org/docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ env.REGISTRY_USERNAME }} + password: ${{ env.REGISTRY_PASSWORD }} - # - name: Extract repository metadata (tags, labels) - # id: meta - # uses: https://github.com/docker/metadata-action@v5 - # with: - # images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }} + - name: Extract repository metadata (tags, labels) + id: meta + uses: https://github.com/docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }} - # - name: Build and publish Alpine Latest - # uses: https://code.forgejo.org/docker/build-push-action@v5 - # with: - # context: .docker/latest - # push: true - # tags: | - # ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}:latest - # labels: ${{ steps.meta.outputs.labels }} + - name: Build and publish Alpine Latest + uses: https://code.forgejo.org/docker/build-push-action@v5 + with: + context: .docker/latest + push: true + tags: | + ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}:latest + labels: ${{ steps.meta.outputs.labels }}