commit ceaeb53a2871c252d14436ed5b53764d3a6cec72 Author: Sofiane Gerhardt Date: Wed May 21 15:57:25 2025 +0200 first commit diff --git a/.forgejo/workflows/docker-build.yaml b/.forgejo/workflows/docker-build.yaml new file mode 100644 index 0000000..64ea83b --- /dev/null +++ b/.forgejo/workflows/docker-build.yaml @@ -0,0 +1,41 @@ +name: Docker Build + +on: + push: + branches: + - main + +env: + IMAGE: git.kvant.cloud/${{ github.repository }} + VERSION: ${{ github.ref_name }} + +jobs: + docker-build: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Login to gitea registry + uses: docker/login-action@v3 + with: + registry: git.kvant.cloud + username: ${{ vars.PHOENIX_PACKAGE_WRITER_USERNAME }} + password: ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }} + + - name: Build and push to gitea registry + uses: docker/build-push-action@v6 + with: + push: true + context: . + build-args: | + VERSION=${{ env.VERSION }} + image: ${{ env.IMAGE }} + cache-from: | + type=registry,ref=${{ env.IMAGE }}:${{ env.VERSION }} + type=registry,ref=${{ env.IMAGE }}:latest + cache-to: type=inline + tags: | + ${{ env.IMAGE }}:${{ env.VERSION }} + ${{ env.IMAGE }}:latest + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ff8212c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:latest + +RUN apk update && \ + apk add s3cmd + +ENTRYPOINT ["/usr/bin/s3cmd"]