Changed back to docker but with quay registry
Build and push Almalinux 9 container images / Build almalinux9 container images (micro, 9.5) (push) Waiting to run
Details
Build and push Almalinux 9 container images / Build latest almalinux9 container images (push) Blocked by required conditions
Details
Build and push Almalinux 8 container images / Build almalinux8 container images (default, 8.10) (push) Failing after 2m54s
Details
Build and push Almalinux 8 container images / Build almalinux8 container images (micro, 8.10) (push) Failing after 1m25s
Details
Build and push Almalinux 8 container images / Build latest almalinux8 container images (push) Has been skipped
Details
Build and push Almalinux 9 container images / Build almalinux9 container images (default, 9.5) (push) Has been cancelled
Details
Build and push Almalinux 9 container images / Build almalinux9 container images (micro, 9.5) (push) Waiting to run
Details
Build and push Almalinux 9 container images / Build latest almalinux9 container images (push) Blocked by required conditions
Details
Build and push Almalinux 8 container images / Build almalinux8 container images (default, 8.10) (push) Failing after 2m54s
Details
Build and push Almalinux 8 container images / Build almalinux8 container images (micro, 8.10) (push) Failing after 1m25s
Details
Build and push Almalinux 8 container images / Build latest almalinux8 container images (push) Has been skipped
Details
Build and push Almalinux 9 container images / Build almalinux9 container images (default, 9.5) (push) Has been cancelled
Details
This commit is contained in:
parent
87c58e5b71
commit
56c4f7a033
|
@ -10,19 +10,15 @@ jobs:
|
||||||
name: Build almalinux8 container images
|
name: Build almalinux8 container images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: quay.io/almalinuxorg/9-minimal:9.5
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
flavor: ["default", "micro"]
|
flavor: ["default", "micro"]
|
||||||
version: ["8.10"]
|
version: ["8.10"]
|
||||||
steps:
|
steps:
|
||||||
- name: Setup requirement
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
microdnf -y install git nodejs buildah podman
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Login to quay.io
|
- name: Login to docker.io
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
|
@ -33,16 +29,17 @@ jobs:
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- if: ${{ matrix.flavor == 'default' }}
|
- if: ${{ matrix.flavor == 'default' }}
|
||||||
name: Build almalinux default image
|
name: Build and push almalinux base
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
context: .
|
context: .
|
||||||
containerfiles: |
|
file: ./8/Dockerfile.${{ matrix.flavor }}
|
||||||
8/Containerfile.${{ matrix.flavor }}
|
|
||||||
build-args: |
|
build-args: |
|
||||||
ALMALINUX_VERSION=${{ matrix.version }}
|
ALMALINUX_VERSION=${{ matrix.version }}
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:${{ matrix.version }}
|
quay.io/sindigilive/almalinux:${{ matrix.version }}
|
||||||
- if: ${{ matrix.flavor == 'micro' }}
|
- if: ${{ matrix.flavor == 'micro' }}
|
||||||
name: Build and push almalinux flavor
|
name: Build and push almalinux flavor
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
@ -52,9 +49,9 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./8/Dockerfile.${{ matrix.flavor }}
|
file: ./8/Dockerfile.${{ matrix.flavor }}
|
||||||
build-args: |
|
build-args: |
|
||||||
ALMALINUX_VERSION=${{ matrix.version }}
|
ALMALINUX_VERSION=${{ matrix.version }}
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
||||||
- if: ${{ matrix.flavor == 'default' }}
|
- if: ${{ matrix.flavor == 'default' }}
|
||||||
name: Scan almalinux image with Trivy
|
name: Scan almalinux image with Trivy
|
||||||
uses: aquasecurity/trivy-action@0.20.0
|
uses: aquasecurity/trivy-action@0.20.0
|
||||||
|
@ -62,48 +59,24 @@ jobs:
|
||||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}'
|
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}'
|
||||||
format: 'sarif'
|
format: 'sarif'
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
- if: ${{ matrix.flavor != 'default' }}
|
- if: ${{ matrix.flavor == 'micro' }}
|
||||||
name: Build and push almalinux flavor
|
name: Scan almalinux image with Trivy
|
||||||
uses: redhat-actions/buildah-build@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
containerfiles: |
|
|
||||||
8/Dockerfile.${{ matrix.flavor }}
|
|
||||||
build-args: |
|
|
||||||
ALMALINUX_VERSION=${{ matrix.version }}
|
|
||||||
tags: |
|
|
||||||
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
|
||||||
- if: ${{ matrix.flavor != 'default' }}
|
|
||||||
name: Push almalinux flavor image to quay.io
|
|
||||||
uses: redhat-actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
tags: quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
|
||||||
registry: quay.io
|
|
||||||
username: ${{ vars.QUAY_USERNAME }}
|
|
||||||
password: ${{ secrets.QUAY_SECRET }}
|
|
||||||
- if: ${{ matrix.flavor != 'default' }}
|
|
||||||
name: Scan almalinux flavor image with Trivy
|
|
||||||
uses: aquasecurity/trivy-action@0.20.0
|
uses: aquasecurity/trivy-action@0.20.0
|
||||||
with:
|
with:
|
||||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
||||||
format: 'sarif'
|
format: 'sarif'
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
build-latest:
|
build-latest:
|
||||||
name: Build latest almalinux8 container images
|
name: Build latest almalinux8 container images
|
||||||
runs-on: almalinux-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
container:
|
container:
|
||||||
image: quay.io/almalinuxorg/9-minimal:9.5
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup requirement
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
microdnf -y install git nodejs buildah podman
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Login to quay.io
|
- name: Login to docker.io
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: quay.io
|
registry: quay.io
|
||||||
|
@ -113,27 +86,21 @@ jobs:
|
||||||
# uses: docker/setup-qemu-action@v3
|
# uses: docker/setup-qemu-action@v3
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Build and push latest almalinux9-micro
|
- name: Build and push latest almalinux8-micro
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
context: .
|
context: .
|
||||||
containerfiles: |
|
file: ./8/Dockerfile.micro
|
||||||
8/Dockerfile.micro
|
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:8-micro
|
quay.io/sindigilive/almalinux:8-micro
|
||||||
- name: Build and push latest almalinux9
|
- name: Build and push latest almalinux8
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
context: .
|
context: .
|
||||||
containerfiles: |
|
file: ./8/Dockerfile.default
|
||||||
8/Dockerfile.micro
|
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:8
|
quay.io/sindigilive/almalinux:8
|
||||||
- name: Push latest almalinux image to quay.io
|
|
||||||
uses: redhat-actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
registry: quay.io
|
|
||||||
username: ${{ vars.QUAY_USERNAME }}
|
|
||||||
password: ${{ secrets.QUAY_SECRET }}
|
|
||||||
tags: |
|
|
||||||
quay.io/sindigilive/almalinux:8
|
|
||||||
|
|
|
@ -10,16 +10,12 @@ jobs:
|
||||||
name: Build almalinux9 container images
|
name: Build almalinux9 container images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: quay.io/almalinuxorg/9-minimal:9.5
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
flavor: ["default", "micro"]
|
flavor: ["default", "micro"]
|
||||||
version: ["9.5"]
|
version: ["9.5"]
|
||||||
steps:
|
steps:
|
||||||
- name: Setup requirement
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
microdnf -y install git nodejs buildah podman
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Login to docker.io
|
- name: Login to docker.io
|
||||||
|
@ -36,13 +32,14 @@ jobs:
|
||||||
name: Build and push almalinux
|
name: Build and push almalinux
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
context: .
|
context: .
|
||||||
containerfiles: |
|
file: ./9/Dockerfile.${{ matrix.flavor }}
|
||||||
9/Containerfile.${{ matrix.flavor }}
|
|
||||||
build-args: |
|
build-args: |
|
||||||
ALMALINUX_VERSION=${{ matrix.version }}
|
ALMALINUX_VERSION=${{ matrix.version }}
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:${{ matrix.version }}
|
quay.io/sindigilive/almalinux:${{ matrix.version }}
|
||||||
- if: ${{ matrix.flavor == 'micro' }}
|
- if: ${{ matrix.flavor == 'micro' }}
|
||||||
name: Build and push almalinux
|
name: Build and push almalinux
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
|
@ -52,55 +49,31 @@ jobs:
|
||||||
context: .
|
context: .
|
||||||
file: ./9/Dockerfile.${{ matrix.flavor }}
|
file: ./9/Dockerfile.${{ matrix.flavor }}
|
||||||
build-args: |
|
build-args: |
|
||||||
ALMALINUX_VERSION=${{ matrix.version }}
|
ALMALINUX_VERSION=${{ matrix.version }}
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
||||||
- if: ${{ matrix.flavor == 'default' }}
|
- if: ${{ matrix.flavor == 'default' }}
|
||||||
name: Scan almalinux image with Trivy
|
name: Scan almalinux9 image with Trivy
|
||||||
uses: aquasecurity/trivy-action@0.20.0
|
uses: aquasecurity/trivy-action@0.20.0
|
||||||
with:
|
with:
|
||||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}'
|
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}'
|
||||||
format: 'sarif'
|
format: 'sarif'
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
- if: ${{ matrix.flavor != 'default' }}
|
- if: ${{ matrix.flavor == 'micro' }}
|
||||||
name: Build and push almalinux flavor
|
name: Scan almalinux9 image with Trivy
|
||||||
uses: redhat-actions/buildah-build@v2
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
containerfiles: |
|
|
||||||
9/Dockerfile.${{ matrix.flavor }}
|
|
||||||
build-args: |
|
|
||||||
ALMALINUX_VERSION=${{ matrix.version }}
|
|
||||||
tags: |
|
|
||||||
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
|
||||||
- if: ${{ matrix.flavor != 'default' }}
|
|
||||||
name: Push almalinux flavor image to quay.io
|
|
||||||
uses: redhat-actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
tags: quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
|
||||||
registry: quay.io
|
|
||||||
username: ${{ vars.QUAY_USERNAME }}
|
|
||||||
password: ${{ secrets.QUAY_SECRET }}
|
|
||||||
- if: ${{ matrix.flavor != 'default' }}
|
|
||||||
name: Scan almalinux flavor image with Trivy
|
|
||||||
uses: aquasecurity/trivy-action@0.20.0
|
uses: aquasecurity/trivy-action@0.20.0
|
||||||
with:
|
with:
|
||||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
||||||
format: 'sarif'
|
format: 'sarif'
|
||||||
output: 'trivy-results.sarif'
|
output: 'trivy-results.sarif'
|
||||||
|
|
||||||
build-latest:
|
build-latest:
|
||||||
name: Build latest almalinux9 container images
|
name: Build latest almalinux9 container images
|
||||||
runs-on: almalinux-latest
|
runs-on: ubuntu-latest
|
||||||
needs:
|
needs:
|
||||||
- build
|
- build
|
||||||
container:
|
container:
|
||||||
image: quay.io/almalinuxorg/9-minimal:9.5
|
image: ghcr.io/catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup requirement
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
microdnf -y install git nodejs buildah podman
|
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Login to docker.io
|
- name: Login to docker.io
|
||||||
|
@ -114,29 +87,22 @@ jobs:
|
||||||
- name: Setup Docker buildx
|
- name: Setup Docker buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: Build and push latest almalinux9-micro
|
- name: Build and push latest almalinux9-micro
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
context: .
|
context: .
|
||||||
containerfiles: |
|
file: ./9/Dockerfile.micro
|
||||||
9/Dockerfile.micro
|
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:9-micro
|
quay.io/sindigilive/almalinux:9-micro
|
||||||
quay.io/sindigilive/almalinux:micro
|
quay.io/sindigilive/almalinux:micro
|
||||||
- name: Build and push latest almalinux9
|
- name: Build and push latest almalinux9
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
|
# platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
context: .
|
context: .
|
||||||
containerfiles: |
|
file: ./9/Dockerfile.default
|
||||||
9/Dockerfile.micro
|
|
||||||
tags: |
|
tags: |
|
||||||
quay.io/sindigilive/almalinux:9
|
quay.io/sindigilive/almalinux:9
|
||||||
quay.io/sindigilive/almalinux:latest
|
quay.io/sindigilive/almalinux:latest
|
||||||
- name: Push latest almalinux image to quay.io
|
|
||||||
uses: redhat-actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
registry: quay.io
|
|
||||||
username: ${{ vars.QUAY_USERNAME }}
|
|
||||||
password: ${{ secrets.QUAY_SECRET }}
|
|
||||||
tags: |
|
|
||||||
quay.io/sindigilive/almalinux:9
|
|
||||||
quay.io/sindigilive/almalinux:latest
|
|
||||||
|
|
|
@ -36,6 +36,8 @@ RUN rm -rf /mnt/rootfs/var/cache/dnf /mnt/rootfs/var/log/dnf* /mnt/rootfs/var/li
|
||||||
|
|
||||||
FROM scratch
|
FROM scratch
|
||||||
|
|
||||||
|
ARG ALMALINUX_VERSION=8.10
|
||||||
|
|
||||||
LABEL maintainer="Muhamad Aditya Prima <aprimediet@gmail.com>"
|
LABEL maintainer="Muhamad Aditya Prima <aprimediet@gmail.com>"
|
||||||
LABEL name="almalinux-micro"
|
LABEL name="almalinux-micro"
|
||||||
LABEL version="${ALMALINUX_VERSION}"
|
LABEL version="${ALMALINUX_VERSION}"
|
||||||
|
|
Loading…
Reference in New Issue