Unified workflows
Build and Push Alpine Image / Build and push image (push) Failing after 33s Details

This commit is contained in:
Aditya Prima 2024-03-23 21:11:10 +07:00
parent 2b6c5ff7ec
commit 68142962d2
14 changed files with 169 additions and 468 deletions

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.5
aprimediet/alpine:3.5

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.9
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.9
aprimediet/alpine:3.9

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.10
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.10
aprimediet/alpine:3.10

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.11
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.11
aprimediet/alpine:3.11

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.12
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.12
aprimediet/alpine:3.12

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.13
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.13
aprimediet/alpine:3.13

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.14
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.14
aprimediet/alpine:3.14

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.15
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.15
aprimediet/alpine:3.15

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.16
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.16
aprimediet/alpine:3.16

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.17
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.17
aprimediet/alpine:3.17

View File

@ -1,38 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.18
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.18
aprimediet/alpine:3.18

View File

@ -1,40 +0,0 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.19
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:latest
git.winteraccess.id/${{ gitea.repository }}:3.19
aprimediet/alpine:latest
aprimediet/alpine:3.19

View File

@ -0,0 +1,161 @@
name: Build and Push Alpine Image
on:
push:
branches:
- master
jobs:
build:
name: Build and push image
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Login to Docker Winter Access Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: aditya.prima
password: ${{ secrets.PATOKEN }}
- name: Login to Docker Hub Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.5
aprimediet/alpine-s6:3.5
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.9
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.9
aprimediet/alpine-s6:3.9
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.10
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.10
aprimediet/alpine-s6:3.10
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.11
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.11
aprimediet/alpine-s6:3.11
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.12
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.12
aprimediet/alpine-s6:3.12
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.13
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.13
aprimediet/alpine-s6:3.13
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.14
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.14
aprimediet/alpine-s6:3.14
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.15
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.15
aprimediet/alpine-s6:3.15
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.16
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.16
aprimediet/alpine-s6:3.16
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.17
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.17
aprimediet/alpine-s6:3.17
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.18
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.18
aprimediet/alpine-s6:3.18
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
ALPINE_VERSION=3.19
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:3.19
git.winteraccess.id/${{ gitea.repository }}:latest
aprimediet/alpine-s6:3.19
aprimediet/alpine-s6:latest

View File

@ -1,22 +1,20 @@
ARG ALPINE_VERSION=3.18
ARG ALPINE_VERSION=3.19
FROM alpine:${ALPINE_VERSION} AS base
FROM alpine:${ALPINE_VERSION}
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
ARG ALPINE_VERSION=3.18
ARG S6_VERSION=3.1.5.0
# ARG ALPINE_MIRROR=http://foobar.turbo.net.id/alpine
ARG ALPINE_VERSION=3.19
ARG S6_VERSION=3.1.6.2
ARG ALPINE_MIRROR=https://dl-cdn.alpinelinux.org
ARG TZ=Asia/Jakarta
# SET REPOSITORY MIRROR TO INDONESIA
# RUN touch /etc/apk/repositories
# RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/main" > /etc/apk/repositories
# RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/community" >> /etc/apk/repositories
# SET REPOSITORY MIRROR
RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/main" > /etc/apk/repositories
RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/community" >> /etc/apk/repositories
# Set User as root
USER root
# INSTALL BASE DEPENDENCIES
RUN apk add --update --no-cache \
bash libcap tzdata curl