name: Build and Push Docker Image on: push: branches: - main jobs: build: runs-on: ubuntu-latest container: image: catthehacker/ubuntu:act-latest env: DOCKER_ORG: de_geythoek RUNNER_TOOL_CACHE: /toolcache steps: - name: Checkout code uses: actions/checkout@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 with: config-inline: | [registry."git.nvds.be"] http = true insecure = true - name: Log in to Docker Hub uses: docker/login-action@v3 with: registry: https://git.nvds.be username: ${{ gitea.repository_owner }} password: ${{ secrets.DOCKER_PASSWORD }} - name: Get Meta id: meta run: | echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT - name: Build and push Docker image uses: docker/build-push-action@v6 with: context: . push: true tags: | git.nvds.be/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} git.nvds.be/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:latest