on: push: branches: - main jobs: docker-image: runs-on: docker container: image: ubuntu:latest 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: registry: git.okoyono.de 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