name: Build Blog Docker Image on: push: branches: - main jobs: build docker: runs-on: linux_amd steps: - name: Checkout code uses: actions/checkout@v4 # with: # lfs: 'true' - name: Checkout LFS run: | function EscapeForwardSlash() { echo "$1" | sed 's/\//\\\//g'; } readonly ReplaceStr="EscapeForwardSlash ${{ gitea.repository }}.git/info/lfs/objects/batch"; sed -i "s/\(\[http\)\( \".*\)\"\]/\1\2`$ReplaceStr`\"]/" .git/config git config --local lfs.transfer.maxretries 1 /usr/bin/git lfs fetch origin refs/remotes/origin/${{ gitea.ref_name }} /usr/bin/git lfs checkout - name: Set up QEMU uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Docker registry uses: docker/login-action@v3 with: registry: git.d3vyce.fr username: ${{ github.actor }} password: ${{ secrets.GIT_TOKEN }} - name: Build and push uses: docker/build-push-action@v6 with: context: . build-args: BLOWFISH_VERSION=v2.84.0 file: ./Dockerfile platforms: linux/amd64 push: true tags: git.d3vyce.fr/${{ github.repository }}:latest