Compare commits

...

1 Commits

Author SHA1 Message Date
Muhamad Aditya Prima 7856e973d0 Updated workflow for nodejs on alpine
Build and push nodejs lts container images / Build nodejs lts container images (map[node_ver_short:14 node_version:14.21.3 os:alpine os_version:3.14]) (push) Successful in 1m3s Details
Build and push nodejs lts container images / Build nodejs lts container images (map[node_ver_short:16 node_version:16.20.2 os:alpine os_version:3.16]) (push) Successful in 59s Details
Build and push nodejs lts container images / Build nodejs lts container images (map[node_ver_short:18 node_version:18.19.1 os:alpine os_version:3.18]) (push) Successful in 1m10s Details
Build and push nodejs lts container images / Build nodejs lts container images (map[node_ver_short:20 node_version:20.15.1 os:alpine os_version:3.20]) (push) Successful in 1m14s Details
Build and push nodejs lts container images / Build nodejs lts container images (map[node_ver_short:22 node_version:22.11.0 os:alpine os_version:3.21]) (push) Successful in 1m23s Details
2024-12-18 03:04:39 +07:00
1 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,61 @@
name: Build and push nodejs lts container images
on:
push:
branches:
- alpine
jobs:
build:
name: Build nodejs lts container images
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
strategy:
matrix:
flavors:
- os: "alpine"
os_version: "3.14"
node_version: "14.21.3"
node_ver_short: "14"
- os: "alpine"
os_version: "3.16"
node_version: "16.20.2"
node_ver_short: "16"
- os: "alpine"
os_version: "3.18"
node_version: "18.19.1"
node_ver_short: "18"
- os: "alpine"
os_version: "3.20"
node_version: "20.15.1"
node_ver_short: "20"
- os: "alpine"
os_version: "3.21"
node_version: "22.11.0"
node_ver_short: "22"
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Login to quay.io
uses: docker/login-action@v3
with:
registry: quay.io
username: ${{ vars.QUAY_USERNAME }}
password: ${{ secrets.QUAY_SECRET }}
# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
- name: Build and push nodejs-lts
uses: docker/build-push-action@v5
with:
push: true
context: .
file: Dockerfile.${{ matrix.flavors.os }}
build-args: |
OS_VERSION=${{ matrix.flavors.os_version }}
NODE_VERSION=${{ matrix.flavors.node_version }}
NODE_VER_SHORT=${{ matrix.flavors.node_ver_short }}
tags: |
quay.io/sindigilive/nodejs:${{ matrix.flavors.node_ver_short }}-${{ matrix.flavors.os }}