Added gitea workflows for version 3.19
This commit is contained in:
parent
7adfa5a447
commit
82057f5c6c
|
|
@ -0,0 +1,32 @@
|
||||||
|
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 Git Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.winteraccess.id
|
||||||
|
username: aditya.prima
|
||||||
|
password: ${{ secrets.PATOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: deploy/Dockerfile.fpm
|
||||||
|
build-args: |
|
||||||
|
ALPINE_VERSION=3.19
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:latest
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:3.19
|
||||||
|
|
@ -14,8 +14,7 @@ RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/main" > /etc/apk/repositories
|
||||||
RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/community" >> /etc/apk/repositories
|
RUN echo "${ALPINE_MIRROR}/v${ALPINE_VERSION}/community" >> /etc/apk/repositories
|
||||||
|
|
||||||
# INSTALL BASE DEPENDENCIES
|
# INSTALL BASE DEPENDENCIES
|
||||||
RUN --mount=type=cache,target=/var/cache/apk \
|
RUN apk add --update \
|
||||||
apk add --update \
|
|
||||||
bash libcap tzdata curl
|
bash libcap tzdata curl
|
||||||
|
|
||||||
# SET LOCAL TIMEZONE
|
# SET LOCAL TIMEZONE
|
||||||
|
|
|
||||||
Reference in New Issue