From 68142962d227582ec71ca3dd7f2e282b9bb1170c Mon Sep 17 00:00:00 2001 From: Aditya Prima Date: Sat, 23 Mar 2024 21:11:10 +0700 Subject: [PATCH] Unified workflows --- .gitea/workflows/305.yaml | 38 --------- .gitea/workflows/309.yaml | 38 --------- .gitea/workflows/310.yaml | 38 --------- .gitea/workflows/311.yaml | 38 --------- .gitea/workflows/312.yaml | 38 --------- .gitea/workflows/313.yaml | 38 --------- .gitea/workflows/314.yaml | 38 --------- .gitea/workflows/315.yaml | 38 --------- .gitea/workflows/316.yaml | 38 --------- .gitea/workflows/317.yaml | 38 --------- .gitea/workflows/318.yaml | 38 --------- .gitea/workflows/319.yaml | 40 --------- .gitea/workflows/master.yaml | 161 +++++++++++++++++++++++++++++++++++ Dockerfile | 18 ++-- 14 files changed, 169 insertions(+), 468 deletions(-) delete mode 100644 .gitea/workflows/305.yaml delete mode 100644 .gitea/workflows/309.yaml delete mode 100644 .gitea/workflows/310.yaml delete mode 100644 .gitea/workflows/311.yaml delete mode 100644 .gitea/workflows/312.yaml delete mode 100644 .gitea/workflows/313.yaml delete mode 100644 .gitea/workflows/314.yaml delete mode 100644 .gitea/workflows/315.yaml delete mode 100644 .gitea/workflows/316.yaml delete mode 100644 .gitea/workflows/317.yaml delete mode 100644 .gitea/workflows/318.yaml delete mode 100644 .gitea/workflows/319.yaml create mode 100644 .gitea/workflows/master.yaml diff --git a/.gitea/workflows/305.yaml b/.gitea/workflows/305.yaml deleted file mode 100644 index 61e017f..0000000 --- a/.gitea/workflows/305.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/309.yaml b/.gitea/workflows/309.yaml deleted file mode 100644 index 1fdf5d3..0000000 --- a/.gitea/workflows/309.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/310.yaml b/.gitea/workflows/310.yaml deleted file mode 100644 index aa0e79f..0000000 --- a/.gitea/workflows/310.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/311.yaml b/.gitea/workflows/311.yaml deleted file mode 100644 index 5f5d47e..0000000 --- a/.gitea/workflows/311.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/312.yaml b/.gitea/workflows/312.yaml deleted file mode 100644 index d42e29f..0000000 --- a/.gitea/workflows/312.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/313.yaml b/.gitea/workflows/313.yaml deleted file mode 100644 index 6f07b95..0000000 --- a/.gitea/workflows/313.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/314.yaml b/.gitea/workflows/314.yaml deleted file mode 100644 index de761a7..0000000 --- a/.gitea/workflows/314.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/315.yaml b/.gitea/workflows/315.yaml deleted file mode 100644 index 6fe0070..0000000 --- a/.gitea/workflows/315.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/316.yaml b/.gitea/workflows/316.yaml deleted file mode 100644 index f5d237b..0000000 --- a/.gitea/workflows/316.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/317.yaml b/.gitea/workflows/317.yaml deleted file mode 100644 index b26c2fb..0000000 --- a/.gitea/workflows/317.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/318.yaml b/.gitea/workflows/318.yaml deleted file mode 100644 index 1cbd2ed..0000000 --- a/.gitea/workflows/318.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/319.yaml b/.gitea/workflows/319.yaml deleted file mode 100644 index 2ecd4eb..0000000 --- a/.gitea/workflows/319.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitea/workflows/master.yaml b/.gitea/workflows/master.yaml new file mode 100644 index 0000000..4807c2f --- /dev/null +++ b/.gitea/workflows/master.yaml @@ -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 \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index b635ce4..8e7c29b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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=" 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