Compare commits
3 Commits
52122134ac
...
c27de98c6a
Author | SHA1 | Date |
---|---|---|
|
c27de98c6a | |
|
5e1c2f82a7 | |
|
8b526a7eba |
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Push Alpine Image to docker.io Registry
|
name: Build and Push Alpine Image
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -13,7 +13,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Login to docker.io Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: docker.io
|
registry: docker.io
|
||||||
|
@ -149,4 +149,5 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
aprimediet/alpine:3.20
|
aprimediet/alpine:3.20
|
||||||
|
aprimediet/alpine:3
|
||||||
aprimediet/alpine:latest
|
aprimediet/alpine:latest
|
|
@ -13,7 +13,7 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Login to Docker Winter Access Registry
|
- name: Login to Docker Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.winteraccess.id
|
registry: git.winteraccess.id
|
||||||
|
@ -149,4 +149,8 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.winteraccess.id/${{ gitea.repository }}:3.20
|
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
|
git.winteraccess.id/${{ gitea.repository }}:latest
|
20
Dockerfile
20
Dockerfile
|
@ -1,23 +1,21 @@
|
||||||
ARG ALPINE_VERSION=3.19
|
ARG ALPINE_VERSION=3.20
|
||||||
|
|
||||||
FROM alpine:${ALPINE_VERSION}
|
FROM alpine:${ALPINE_VERSION}
|
||||||
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
|
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
|
||||||
|
|
||||||
ARG ALPINE_VERSION=3.19
|
ARG ALPINE_VERSION=3.20
|
||||||
ARG S6_VERSION=3.1.6.2
|
|
||||||
# ARG ALPINE_MIRROR=https://dl-cdn.alpinelinux.org
|
|
||||||
ARG TZ=Asia/Jakarta
|
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
|
# Set User as root
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
# INSTALL BASE DEPENDENCIES
|
# INSTALL BASE DEPENDENCIES
|
||||||
RUN apk add --update --no-cache \
|
RUN --mount=type=cache,target=/var/cache/apk \
|
||||||
bash libcap tzdata curl
|
apk add --update \
|
||||||
|
libcap tzdata curl
|
||||||
|
|
||||||
# SET LOCAL TIMEZONE
|
# SET LOCAL TIMEZONE
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
|
||||||
|
# CLEAN APK CACHES
|
||||||
|
RUN rm -vrf /var/cache/apk/*
|
Loading…
Reference in New Issue