name: Build container on: workflow_dispatch: # This makes the workflow manually triggered push: branches: ["main"] paths: - "containers/fedora/**" - "containers/dotnet/**" - "containers/rust/**" - "containers/php/**" - ".gitea/workflows/fedora.yaml" pull_request: branches: ["main"] jobs: fedora-build: runs-on: job-latest steps: - name: Clone repo uses: actions/checkout@v4 - name: Setup Docker Buildx uses: docker/setup-buildx-action@v3 - name: Login to Registry uses: docker/login-action@v3 with: registry: git.plabble.org username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push Fedora container uses: docker/build-push-action@v5 with: context: ./containers/fedora file: ./containers/fedora/Containerfile push: true tags: git.plabble.org/maurice/fedora:${{ github.ref_name }} build-args: TAG=${{ github.ref_name }} outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true # - name: Build and push Rust container # uses: docker/build-push-action@v5 # with: # context: ./containers/rust # file: ./containers/rust/Containerfile # push: true # tags: git.plabble.org/maurice/rust:${{ github.ref_name }} # build-args: TAG=${{ github.ref_name }} # outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true - name: Build and push PHP container uses: docker/build-push-action@v5 with: context: ./containers/php file: ./containers/php/Containerfile push: true tags: git.plabble.org/maurice/php:${{ github.ref_name }} build-args: TAG=${{ github.ref_name }} outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true # - name: Build and push C# container # uses: docker/build-push-action@v5 # with: # context: ./containers/dotnet # file: ./containers/dotnet/Containerfile # push: true # tags: git.plabble.org/maurice/dotnet:${{ github.ref_name }} # build-args: TAG=${{ github.ref_name }} # outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true