name: Build and Push Base Images on: push: branches: [main] paths: - 'docker/build/**' - '.forgejo/workflows/images.yml' workflow_dispatch: jobs: images: runs-on: docker container: image: catthehacker/ubuntu:act-latest strategy: matrix: include: - name: fedi-feed-router-base file: docker/build/Dockerfile.base version: php8.3-1 - name: fedi-feed-router-ci file: docker/build/Dockerfile.ci version: php8.3-1 steps: - uses: https://data.forgejo.org/actions/checkout@v4 - name: Set up Docker Buildx uses: https://data.forgejo.org/docker/setup-buildx-action@v3 - name: Login to Forgejo Registry uses: https://data.forgejo.org/docker/login-action@v3 with: registry: forge.lvl0.xyz username: ${{ github.actor }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push uses: https://data.forgejo.org/docker/build-push-action@v5 with: context: . file: ${{ matrix.file }} push: true tags: | forge.lvl0.xyz/lvl0/${{ matrix.name }}:${{ matrix.version }} forge.lvl0.xyz/lvl0/${{ matrix.name }}:latest forge.lvl0.xyz/lvl0/${{ matrix.name }}:${{ github.sha }}