Fix WF and old images
This commit is contained in:
1 parent
056f95384c
commit
9357f46272
4 files changed
+355
No files matched your search
@@ -112,3 +112,195 @@ jobs:
|
||||
Repo: ${{ github.repository }}
|
||||
Branch: ${{ github.ref_name }}
|
||||
Commit: ${{ github.sha }}
|
||||
|
||||
# ─── APACHE V2 ────────────────────────────────────────────────────────
|
||||
|
||||
build-apache-v2-amd64:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
outputs:
|
||||
digest: ${{ steps.build.outputs.digest }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.steelants.cz
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: v2-apache
|
||||
platforms: linux/amd64
|
||||
outputs: type=image,name=git.steelants.cz/steelants/docker_php_base,push-by-digest=true,name-canonical=true,push=true
|
||||
|
||||
build-apache-v2-arm64:
|
||||
runs-on: ubuntu-latest-arm
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
outputs:
|
||||
digest: ${{ steps.build.outputs.digest }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.steelants.cz
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: v2-apache
|
||||
platforms: linux/arm64
|
||||
outputs: type=image,name=git.steelants.cz/steelants/docker_php_base,push-by-digest=true,name-canonical=true,push=true
|
||||
|
||||
manifest-apache-v2:
|
||||
needs: [build-apache-v2-amd64, build-apache-v2-arm64]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
driver: docker
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.steelants.cz
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- name: Create and push multi-arch manifest
|
||||
run: |
|
||||
docker buildx imagetools create -t git.steelants.cz/steelants/docker_php_base:v2-latest \
|
||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-apache-v2-amd64.outputs.digest }} \
|
||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-apache-v2-arm64.outputs.digest }}
|
||||
|
||||
- name: Discord Webhook Success
|
||||
if: success()
|
||||
uses: tsickert/discord-webhook@v6.0.0
|
||||
with:
|
||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||
content: |
|
||||
✅ APACHE V2 - Build successful! (amd64 + arm64)
|
||||
Repo: ${{ github.repository }}
|
||||
Branch: ${{ github.ref_name }}
|
||||
Commit: ${{ github.sha }}
|
||||
|
||||
- name: Discord Webhook Failure
|
||||
if: failure()
|
||||
uses: tsickert/discord-webhook@v6.0.0
|
||||
with:
|
||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||
content: |
|
||||
❌ APACHE V2 - Build failed!
|
||||
Repo: ${{ github.repository }}
|
||||
Branch: ${{ github.ref_name }}
|
||||
Commit: ${{ github.sha }}
|
||||
|
||||
# ─── ALPINE V2 ────────────────────────────────────────────────────────
|
||||
|
||||
build-alpine-v2-amd64:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
outputs:
|
||||
digest: ${{ steps.build.outputs.digest }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.steelants.cz
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: v2-fmp-alpine
|
||||
platforms: linux/amd64
|
||||
outputs: type=image,name=git.steelants.cz/steelants/docker_php_base,push-by-digest=true,name-canonical=true,push=true
|
||||
|
||||
build-alpine-v2-arm64:
|
||||
runs-on: ubuntu-latest-arm
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
outputs:
|
||||
digest: ${{ steps.build.outputs.digest }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.steelants.cz
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- id: build
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: v2-fmp-alpine
|
||||
platforms: linux/arm64
|
||||
outputs: type=image,name=git.steelants.cz/steelants/docker_php_base,push-by-digest=true,name-canonical=true,push=true
|
||||
|
||||
manifest-alpine-v2:
|
||||
needs: [build-alpine-v2-amd64, build-alpine-v2-arm64]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
container:
|
||||
image: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: docker/setup-buildx-action@v1
|
||||
with:
|
||||
driver: docker
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.steelants.cz
|
||||
username: ${{ secrets.GITEAUSER }}
|
||||
password: ${{ secrets.GITEAPASSWD }}
|
||||
- name: Create and push multi-arch manifest
|
||||
run: |
|
||||
docker buildx imagetools create -t git.steelants.cz/steelants/docker_php_base:alpine-v2-latest \
|
||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-alpine-v2-amd64.outputs.digest }} \
|
||||
git.steelants.cz/steelants/docker_php_base@${{ needs.build-alpine-v2-arm64.outputs.digest }}
|
||||
|
||||
- name: Discord Webhook Success
|
||||
if: success()
|
||||
uses: tsickert/discord-webhook@v6.0.0
|
||||
with:
|
||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||
content: |
|
||||
✅ ALPINE V2 - Build successful! (amd64 + arm64)
|
||||
Repo: ${{ github.repository }}
|
||||
Branch: ${{ github.ref_name }}
|
||||
Commit: ${{ github.sha }}
|
||||
|
||||
- name: Discord Webhook Failure
|
||||
if: failure()
|
||||
uses: tsickert/discord-webhook@v6.0.0
|
||||
with:
|
||||
webhook-url: ${{ secrets.WEBHOOK_URL }}
|
||||
content: |
|
||||
❌ ALPINE V2 - Build failed!
|
||||
Repo: ${{ github.repository }}
|
||||
Branch: ${{ github.ref_name }}
|
||||
Commit: ${{ github.sha }}
|
||||
Reference in new issue
Block a user