diff --git a/.forgejo/workflows/docker-image.yaml b/.forgejo/workflows/docker-image.yaml new file mode 100644 index 0000000..5f09218 --- /dev/null +++ b/.forgejo/workflows/docker-image.yaml @@ -0,0 +1,31 @@ +on: + push: + branches: + - main + +jobs: + docker-image: + runs-on: docker + steps: + - name: Install dependencies + run: | + apt-get update + apt-get install -y git + + - name: Checkout sourcecode + uses: actions/checkout@v3 + + - name: Set up Docker build environment + uses: docker/setup-buildx-action@v3 + + - name: Login to forgejo docker registry + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }} + + - name: Build and push the docker image + uses: docker/build-push-action@v5 + with: + push: true + tags: git.okoyono.de/okoyono-intern/okospaceapi:latest \ No newline at end of file