Updated all workflows
This commit is contained in:
parent
197b100964
commit
ed3fdac672
|
@ -0,0 +1,73 @@
|
|||
name: Build and Push alpine Image
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build and push image
|
||||
runs-on: alpine-latest
|
||||
container:
|
||||
image: ghcr.io/catthehacker/alpine: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: Login to Docker Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: aprimediet
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
- name: Build and push 2.2.23@php5.6
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.alpine
|
||||
build-args: |
|
||||
PHP_VERSION=5.6
|
||||
COMPOSER_VERSION=2.2.23
|
||||
push: true
|
||||
tags: |
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.2.23-alpine-php5.6
|
||||
aprimediet/composer:2.2.23-alpine-php5.6
|
||||
- name: Build and push 2.2.23@php7.4
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.alpine
|
||||
build-args: |
|
||||
PHP_VERSION=7.4
|
||||
COMPOSER_VERSION=2.2.23
|
||||
push: true
|
||||
tags: |
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.2.23
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.2.23-alpine
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.2.23-alpine-php7.4
|
||||
aprimediet/composer:2.2.23
|
||||
aprimediet/composer:2.2.23-alpine
|
||||
aprimediet/composer:2.2.23-alpine-php7.4
|
||||
- name: Build and push 2.7.2@php8.3
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfile.alpine
|
||||
build-args: |
|
||||
PHP_VERSION=8.3
|
||||
COMPOSER_VERSION=2.7.2
|
||||
push: true
|
||||
tags: |
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.7.2
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.7.2-alpine
|
||||
git.winteraccess.id/${{ gitea.repository }}:2.7.2-alpine-php8.3
|
||||
git.winteraccess.id/${{ gitea.repository }}:latest-alpine
|
||||
aprimediet/composer:2.7.2
|
||||
aprimediet/composer:2.7.2-alpine
|
||||
aprimediet/composer:2.7.2-alpine-php8.3
|
||||
aprimediet/composer:latest-alpine
|
|
@ -0,0 +1,15 @@
|
|||
ARG PHP_VERSION=8.3
|
||||
ARG REGISTRY_URL=git.winteraccess.id/docker
|
||||
|
||||
FROM ${REGISTRY_URL}/php:${PHP_VERSION}-alpine
|
||||
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
|
||||
|
||||
ARG COMPOSER_VERSION=2.7.2
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
USER root
|
||||
|
||||
# DOWNLOAD AND INSTALL COMPOSER
|
||||
ADD https://getcomposer.org/installer ./composer-setup.php
|
||||
RUN php composer-setup.php --version=${COMPOSER_VERSION} && mv composer.phar /usr/local/bin/composer && rm -f ./composer-setup.php
|
|
@ -4,17 +4,12 @@ ARG REGISTRY_URL=git.winteraccess.id/docker
|
|||
FROM ${REGISTRY_URL}/php:${PHP_VERSION}-ubuntu
|
||||
LABEL maintainer="<Muhamad Aditya Prima> aprimediet@gmail.com"
|
||||
|
||||
ARG PHP_VERSION=8.3
|
||||
ARG COMPOSER_VERSION=2.7.2
|
||||
|
||||
WORKDIR /tmp
|
||||
|
||||
USER root
|
||||
|
||||
# DOWNLOAD COMPOSER
|
||||
# DOWNLOAD AND INSTALL COMPOSER
|
||||
ADD https://getcomposer.org/installer ./composer-setup.php
|
||||
|
||||
RUN php composer-setup.php --version=${COMPOSER_VERSION} && mv composer.phar /usr/local/bin/composer && rm -f ./composer-setup.php
|
||||
|
||||
# CLEAN APT CACHES
|
||||
RUN apt -y clean
|
Reference in New Issue