on: push: branches: - main release: types: - published jobs: build-deploy: runs-on: ubuntu-latest env: DOCKER_LATEST: nightly DOCKER_ORG: beisel.org steps: - name: Checkout Code uses: actions/checkout@v4 - name: Setup Docker run: curl -fsSL https://get.docker.com | sh - name: Setup Docker BuildX uses: docker/setup-buildx-action@v2 with: config-inline: | [registry."https://git.beisel.it"] - name: Login to Registry uses: docker/login-action@v2 with: registry: git.beisel.it # replace it with your local IP username: ${{ gitea.actor }} password: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - 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 uses: docker/build-push-action@v4 with: context: . file: ./Dockerfile platforms: | linux/amd64 linux/arm64 push: true tags: | # replace it with your local IP and tags git.beisel.it/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} git.beisel.it/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}