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:
|
||||
push:
|
||||
branches:
|
||||
|
@ -13,7 +13,7 @@ jobs:
|
|||
steps:
|
||||
- name: Check out repository code
|
||||
uses: actions/checkout@v3
|
||||
- name: Login to docker.io Registry
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
|
@ -149,4 +149,5 @@ jobs:
|
|||
push: true
|
||||
tags: |
|
||||
aprimediet/alpine:3.20
|
||||
aprimediet/alpine:3
|
||||
aprimediet/alpine:latest
|
|
@ -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
|
20
Dockerfile
20
Dockerfile
|
@ -1,23 +1,21 @@
|
|||
ARG ALPINE_VERSION=3.19
|
||||
ARG ALPINE_VERSION=3.20
|
||||
|
||||
FROM alpine:${ALPINE_VERSION}
|
||||
LABEL maintainer="<Aditya Prima> 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
|
||||
|
||||
# INSTALL BASE DEPENDENCIES
|
||||
RUN apk add --update --no-cache \
|
||||
bash libcap tzdata curl
|
||||
RUN --mount=type=cache,target=/var/cache/apk \
|
||||
apk add --update \
|
||||
libcap tzdata curl
|
||||
|
||||
# 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