diff --git a/.gitea/workflows/other.yaml b/.gitea/workflows/other.yaml new file mode 100644 index 0000000..90e0574 --- /dev/null +++ b/.gitea/workflows/other.yaml @@ -0,0 +1,55 @@ +name: Build other containers +on: + push: + branches: ["main"] + paths: + - "fullstack.Containerfile" + - "php.Containerfile" + - "rust.Containerfile" + - "scripts/install-roslyn.sh" + - ".gitea/workflows/other.yaml" + +jobs: + other-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 PHP container + uses: docker/build-push-action@v5 + with: + context: . + file: ./php.Containerfile + push: true + tags: git.plabble.org/maurice/devc-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 Rust container + uses: docker/build-push-action@v5 + with: + context: . + file: ./rust.Containerfile + push: true + tags: git.plabble.org/maurice/devc-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 Fullstack container + uses: docker/build-push-action@v5 + with: + context: . + file: ./fullstack.Containerfile + push: true + tags: git.plabble.org/maurice/devc-fullstack:${{ github.ref_name }} + build-args: TAG=${{ github.ref_name }} + outputs: type=image,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true diff --git a/fullstack.Containerfile b/fullstack.Containerfile index b96cc09..4d7501f 100644 --- a/fullstack.Containerfile +++ b/fullstack.Containerfile @@ -1,4 +1,4 @@ -FROM localhost/devc-web-base +FROM git.plabble.org/maurice/devc-web-base:main RUN apk add --no-cache \ dotnet9-sdk diff --git a/php.Containerfile b/php.Containerfile index 8bdd637..f066316 100644 --- a/php.Containerfile +++ b/php.Containerfile @@ -1,4 +1,4 @@ -FROM localhost/devc-web-base +FROM git.plabble.org/maurice/devc-web-base:main USER user RUN /bin/bash -c "$(curl -fsSL https://php.new/install/linux/8.4)" \ No newline at end of file diff --git a/rust.Containerfile b/rust.Containerfile index 3a50849..9bbe731 100644 --- a/rust.Containerfile +++ b/rust.Containerfile @@ -1,4 +1,4 @@ -FROM localhost/devc-base +FROM git.plabble.org/maurice/devc-base:main RUN su -c "curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y" user RUN su -c ". '/home/user/.cargo/env' && rustup component add rust-analyzer" user diff --git a/web-base.Containerfile b/web-base.Containerfile index 8137973..2865296 100644 --- a/web-base.Containerfile +++ b/web-base.Containerfile @@ -1,4 +1,4 @@ -FROM localhost/devc-base +FROM git.plabble.org/maurice/devc-base:main RUN apk add --no-cache \ deno pnpm