Changed registry to quay.io
This commit is contained in:
parent
792a8c2700
commit
29dd37cbd8
|
@ -18,11 +18,12 @@ jobs:
|
|||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to docker.io
|
||||
- name: Login to quay.io
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: quay.io
|
||||
username: ${{ vars.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_SECRET }}
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
- name: Setup Docker buildx
|
||||
|
@ -38,7 +39,7 @@ jobs:
|
|||
build-args: |
|
||||
ALMALINUX_VERSION=${{ matrix.version }}
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}
|
||||
quay.io/sindigilive/almalinux:${{ matrix.version }}
|
||||
- if: ${{ matrix.flavor == 'micro' }}
|
||||
name: Build and push almalinux flavor
|
||||
uses: docker/build-push-action@v5
|
||||
|
@ -50,19 +51,19 @@ jobs:
|
|||
build-args: |
|
||||
ALMALINUX_VERSION=${{ matrix.version }}
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
||||
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
||||
- if: ${{ matrix.flavor == 'default' }}
|
||||
name: Scan almalinux image with Trivy
|
||||
uses: aquasecurity/trivy-action@0.20.0
|
||||
with:
|
||||
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}'
|
||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
- if: ${{ matrix.flavor == 'micro' }}
|
||||
name: Scan almalinux image with Trivy
|
||||
uses: aquasecurity/trivy-action@0.20.0
|
||||
with:
|
||||
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
build-latest:
|
||||
|
@ -75,11 +76,12 @@ jobs:
|
|||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v4
|
||||
- name: Login to docker.io
|
||||
- name: Login to quay.io
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: quay.io
|
||||
username: ${{ vars.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_SECRET }}
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
- name: Setup Docker buildx
|
||||
|
@ -92,7 +94,7 @@ jobs:
|
|||
context: .
|
||||
file: ./8/Dockerfile.micro
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:8-micro
|
||||
quay.io/sindigilive/almalinux:8-micro
|
||||
- name: Build and push latest almalinux9
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
@ -101,4 +103,4 @@ jobs:
|
|||
context: .
|
||||
file: ./8/Dockerfile.default
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:8
|
||||
quay.io/sindigilive/almalinux:8
|
||||
|
|
|
@ -21,8 +21,9 @@ jobs:
|
|||
- name: Login to docker.io
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: quay.io
|
||||
username: ${{ vars.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_SECRET }}
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
- name: Setup Docker buildx
|
||||
|
@ -38,7 +39,7 @@ jobs:
|
|||
build-args: |
|
||||
ALMALINUX_VERSION=${{ matrix.version }}
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}
|
||||
quay.io/sindigilive/almalinux:${{ matrix.version }}
|
||||
- if: ${{ matrix.flavor == 'micro' }}
|
||||
name: Build and push almalinux
|
||||
uses: docker/build-push-action@v5
|
||||
|
@ -50,19 +51,19 @@ jobs:
|
|||
build-args: |
|
||||
ALMALINUX_VERSION=${{ matrix.version }}
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
||||
quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}
|
||||
- if: ${{ matrix.flavor == 'default' }}
|
||||
name: Scan almalinux9 image with Trivy
|
||||
uses: aquasecurity/trivy-action@0.20.0
|
||||
with:
|
||||
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}'
|
||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
- if: ${{ matrix.flavor == 'micro' }}
|
||||
name: Scan almalinux9 image with Trivy
|
||||
uses: aquasecurity/trivy-action@0.20.0
|
||||
with:
|
||||
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
||||
image-ref: 'quay.io/sindigilive/almalinux:${{ matrix.version }}-${{ matrix.flavor }}'
|
||||
format: 'sarif'
|
||||
output: 'trivy-results.sarif'
|
||||
build-latest:
|
||||
|
@ -78,8 +79,9 @@ jobs:
|
|||
- name: Login to docker.io
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
registry: quay.io
|
||||
username: ${{ vars.QUAY_USERNAME }}
|
||||
password: ${{ secrets.QUAY_SECRET }}
|
||||
# - name: Set up QEMU
|
||||
# uses: docker/setup-qemu-action@v3
|
||||
- name: Setup Docker buildx
|
||||
|
@ -92,8 +94,8 @@ jobs:
|
|||
context: .
|
||||
file: ./9/Dockerfile.micro
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:9-micro
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:micro
|
||||
quay.io/sindigilive/almalinux:9-micro
|
||||
quay.io/sindigilive/almalinux:micro
|
||||
- name: Build and push latest almalinux9
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
|
@ -102,5 +104,5 @@ jobs:
|
|||
context: .
|
||||
file: ./9/Dockerfile.default
|
||||
tags: |
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:9
|
||||
${{ vars.DOCKERHUB_USERNAME }}/almalinux:latest
|
||||
quay.io/sindigilive/almalinux:9
|
||||
quay.io/sindigilive/almalinux:latest
|
||||
|
|
Loading…
Reference in New Issue