diff --git a/.gitea/workflows/master-dockerio.yaml b/.gitea/workflows/master-dockerio.yaml new file mode 100644 index 0000000..51e2010 --- /dev/null +++ b/.gitea/workflows/master-dockerio.yaml @@ -0,0 +1,153 @@ +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 Registry + uses: docker/login-action@v3 + with: + registry: docker.io + username: aprimediet + password: ${{ secrets.DOCKER_TOKEN }} + - name: Build and push 3.5 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.5 + push: true + tags: | + aprimediet/alpine:3.5 + - name: Build and push 3.9 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.9 + push: true + tags: | + aprimediet/alpine:3.9 + - name: Build and push 3.10 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.10 + push: true + tags: | + aprimediet/alpine:3.10 + - name: Build and push 3.11 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.11 + push: true + tags: | + aprimediet/alpine:3.11 + - name: Build and push 3.12 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.12 + push: true + tags: | + aprimediet/alpine:3.12 + - name: Build and push 3.13 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.13 + push: true + tags: | + aprimediet/alpine:3.13 + - name: Build and push 3.14 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.14 + push: true + tags: | + aprimediet/alpine:3.14 + - name: Build and push 3.15 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.15 + push: true + tags: | + aprimediet/alpine:3.15 + - name: Build and push 3.16 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.16 + push: true + tags: | + aprimediet/alpine:3.16 + - name: Build and push 3.17 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.17 + push: true + tags: | + aprimediet/alpine:3.17 + - name: Build and push 3.18 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.18 + push: true + tags: | + aprimediet/alpine:3.18 + - name: Build and push 3.19 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.19 + push: true + tags: | + aprimediet/alpine:3.19 + - name: Build and push 3.20 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.20 + push: true + tags: | + aprimediet/alpine:3.20 + aprimediet/alpine:3 + aprimediet/alpine:latest \ No newline at end of file diff --git a/.gitea/workflows/master-winter.yaml b/.gitea/workflows/master-winter.yaml new file mode 100644 index 0000000..662242e --- /dev/null +++ b/.gitea/workflows/master-winter.yaml @@ -0,0 +1,156 @@ +name: Build and Push Alpine Image to Winter Access Registry +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 Registry + uses: docker/login-action@v3 + with: + registry: git.winteraccess.id + username: aditya.prima + password: ${{ secrets.PATOKEN }} + - name: Build and push 3.5 + 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 + - name: Build and push 3.9 + 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 + - name: Build and push 3.10 + 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 + - name: Build and push 3.11 + 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 + - name: Build and push 3.12 + 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 + - name: Build and push 3.13 + 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 + - name: Build and push 3.14 + 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 + - name: Build and push 3.15 + 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 + - name: Build and push 3.16 + 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 + - name: Build and push 3.17 + 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 + - name: Build and push 3.18 + 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 + - name: Build and push 3.19 + 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 + - name: Build and push 3.20 + uses: docker/build-push-action@v5 + with: + context: . + file: Dockerfile + build-args: | + ALPINE_VERSION=3.20 + push: true + tags: | + git.winteraccess.id/${{ gitea.repository }}:3.20 +<<<<<<<< HEAD:.gitea/workflows/winter.yaml +======== + git.winteraccess.id/${{ gitea.repository }}:3 +>>>>>>>> b2241d5 (Added alpine linux version 3.20):.gitea/workflows/master-winter.yaml + git.winteraccess.id/${{ gitea.repository }}:latest \ No newline at end of file diff --git a/.gitea/workflows/winter.yaml b/.gitea/workflows/winter.yaml index 00b1759..662242e 100644 --- a/.gitea/workflows/winter.yaml +++ b/.gitea/workflows/winter.yaml @@ -13,7 +13,7 @@ jobs: steps: - name: Check out repository code uses: actions/checkout@v3 - - name: Login to Docker Winter Access Registry + - name: Login to Docker Registry uses: docker/login-action@v3 with: registry: git.winteraccess.id @@ -149,4 +149,8 @@ jobs: push: true tags: | git.winteraccess.id/${{ gitea.repository }}:3.20 +<<<<<<<< HEAD:.gitea/workflows/winter.yaml +======== + git.winteraccess.id/${{ gitea.repository }}:3 +>>>>>>>> b2241d5 (Added alpine linux version 3.20):.gitea/workflows/master-winter.yaml git.winteraccess.id/${{ gitea.repository }}:latest \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index e519cc4..17153f0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,17 +1,11 @@ -ARG ALPINE_VERSION=3.19 +ARG ALPINE_VERSION=3.20 FROM alpine:${ALPINE_VERSION} LABEL maintainer=" aprimediet@gmail.com" -ARG ALPINE_VERSION=3.19 -ARG S6_VERSION=3.1.6.2 -# ARG ALPINE_MIRROR=https://dl-cdn.alpinelinux.org +ARG ALPINE_VERSION=3.20 ARG TZ=Asia/Jakarta -# 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 diff --git a/README.md b/README.md index 12d56a3..6d784e7 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # alpine -Alpine Linux Base Image \ No newline at end of file +Alpine Linux Base Image with +7 Timezone \ No newline at end of file