Compare commits

...

2 Commits

Author SHA1 Message Date
Muhamad Aditya Prima 6ad2dbbda0 Changed registry to quay.io
Build and push Alpine Linux container images / Build alpine linux container images (3.11) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.10) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.12) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.13) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.14) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.15) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.16) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.17) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.18) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.19) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.20) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.21) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.5) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.6) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.7) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.8) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (3.9) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build alpine linux container images (edge) (push) Has been cancelled Details
Build and push Alpine Linux container images / Build latest alpine linux container images (push) Has been cancelled Details
2024-12-16 03:50:25 +07:00
Muhamad Aditya Prima 5685eada11 Changed registry to quay.io 2024-12-16 03:50:06 +07:00
2 changed files with 13 additions and 28 deletions

View File

@ -6,22 +6,6 @@ on:
- master
jobs:
# prepare:
# name: Get build meta
# runs-on: ubuntu-latest
# container:
# image: ghcr.io/catthehacker/ubuntu:act-latest
# steps:
# - name: Check out repository code
# uses: actions/checkout@v4
# - name: Get build-meta.json content
# id: get-build-meta
# uses: ActionsTools/read-json-action@main
# with:
# file_path: "build-meta.json"
# outputs:
# versions: ${{ steps.get-build-meta.outputs.versions }}
build:
name: Build alpine linux container images
container:
@ -54,11 +38,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
@ -72,11 +57,11 @@ jobs:
build-args: |
ALPINE_VERSION=${{ matrix.version }}
tags: |
${{ vars.DOCKERHUB_USERNAME }}/alpine:${{ matrix.version }}
quay.io/sindigilive/alpine:${{ matrix.version }}
- name: Scan container image with Trivy
uses: aquasecurity/trivy-action@0.20.0
with:
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/alpine:${{ matrix.version }}'
image-ref: 'quay.io/sindigilive/alpine:${{ matrix.version }}'
format: 'sarif'
output: 'trivy-results.sarif'
@ -91,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
@ -107,10 +93,10 @@ jobs:
push: true
context: .
tags: |
${{ vars.DOCKERHUB_USERNAME }}/alpine:latest
quay.io/sindigilive/alpine:latest
- name: Scan container image with Trivy
uses: aquasecurity/trivy-action@0.20.0
with:
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/alpine:latest'
image-ref: 'quay.io/sindigilive/alpine:latest'
format: 'sarif'
output: 'trivy-results.sarif'

View File

@ -9,8 +9,7 @@ ARG TZ=Asia/Jakarta
USER root
# Install base dependencies, set timezone to designated timezone
RUN --mount=type=cache,target=/var/cache/apk \
/sbin/apk update --no-cache; \
RUN /sbin/apk update --no-cache; \
/sbin/apk upgrade --no-cache; \
/sbin/apk add --update --no-cache \
tzdata; \