83 lines
2.8 KiB
YAML
83 lines
2.8 KiB
YAML
name: Build and Push Alpine NodeJS Image to Winter Access Registry
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and push nodejs alpine based to git.winteraccess.id
|
|
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 Winter Access Git Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.winteraccess.id
|
|
username: ${{ vars.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
- name: Build and push 14.21.3
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
ALPINE_VERSION=3.14
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:14.21.3-alpine
|
|
git.winteraccess.id/${{ gitea.repository }}:14-alpine
|
|
- name: Build and push 16.20.2
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
ALPINE_VERSION=3.16
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:16.20.2-alpine
|
|
git.winteraccess.id/${{ gitea.repository }}:16-alpine
|
|
- name: Build and push 18.19.1
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
ALPINE_VERSION=3.18
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:18.19.1-alpine
|
|
git.winteraccess.id/${{ gitea.repository }}:18-alpine
|
|
- name: Build and push 20.15.1
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
ALPINE_VERSION=3.20
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:20.15.1-alpine
|
|
git.winteraccess.id/${{ gitea.repository }}:20-alpine
|
|
- name: Build and push 22.11.1
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: Dockerfile.alpine
|
|
build-args: |
|
|
REGISTRY_URL=git.winteraccess.id/docker
|
|
ALPINE_VERSION=3.21
|
|
push: true
|
|
tags: |
|
|
git.winteraccess.id/${{ gitea.repository }}:22.11.1-alpine
|
|
git.winteraccess.id/${{ gitea.repository }}:22-alpine
|
|
git.winteraccess.id/${{ gitea.repository }}:alpine
|