Added dockerio actions, updated latest to 20.15.1, and updated ubuntu base image to use 24.04 / noble
Build and Push Alpine NodeJS Image to docker.io Registry / Build and push image (push) Successful in 3m32s Details
Build and Push Alpine NodeJS Image to Winter Access Registry / Build and push image (push) Successful in 49s Details
Build and Push Ubuntu NodeJS Image to docker.io Registry / Build and push image (push) Successful in 5m40s Details
Build and Push Ubuntu NodeJS Image to Winter Access Registry / Build and push image (push) Failing after 12s Details

This commit is contained in:
Aditya Prima 2024-07-18 15:57:41 +07:00
parent 8c6768c684
commit 94c47a47c1
5 changed files with 152 additions and 5 deletions

View File

@ -0,0 +1,67 @@
name: Build and Push Alpine NodeJS Image to docker.io Registry
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.io Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push 14.21.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
REGISTRY_URL=aprimediet
ALPINE_VERSION=3.14
push: true
tags: |
aprimediet/nodejs:14-alpine
- name: Build and push 16.20.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
REGISTRY_URL=aprimediet
ALPINE_VERSION=3.16
push: true
tags: |
aprimediet/nodejs:16-alpine
- name: Build and push 18.19.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
REGISTRY_URL=aprimediet
ALPINE_VERSION=3.18
push: true
tags: |
aprimediet/nodejs:18-alpine
- name: Build and push 20.15.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.alpine
build-args: |
REGISTRY_URL=aprimediet
ALPINE_VERSION=3.20
push: true
tags: |
aprimediet/nodejs:20-alpine
aprimediet/nodejs:latest-alpine
aprimediet/nodejs:alpine

View File

@ -1,4 +1,4 @@
name: Build and Push Alpine PHP 8.3 Image name: Build and Push Alpine NodeJS Image to Winter Access Registry
on: on:
push: push:
branches: branches:
@ -49,13 +49,13 @@ jobs:
push: true push: true
tags: | tags: |
git.winteraccess.id/${{ gitea.repository }}:18-alpine git.winteraccess.id/${{ gitea.repository }}:18-alpine
- name: Build and push 20.11.1 - name: Build and push 20.15.1
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: Dockerfile.alpine file: Dockerfile.alpine
build-args: | build-args: |
ALPINE_VERSION=3.19 ALPINE_VERSION=3.20
push: true push: true
tags: | tags: |
git.winteraccess.id/${{ gitea.repository }}:20-alpine git.winteraccess.id/${{ gitea.repository }}:20-alpine

View File

@ -0,0 +1,75 @@
name: Build and Push Ubuntu NodeJS Image to docker.io Registry
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.io Registry
uses: docker/login-action@v3
with:
registry: docker.io
username: aprimediet
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push 14.21.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
build-args: |
REGISTRY_URL=aprimediet
UBUNTU_VERSION=noble
NODE_VERSION=14.21.3
push: true
tags: |
aprimediet/nodejs:14-ubuntu
aprimediet/nodejs:14
- name: Build and push 16.20.2
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
build-args: |
REGISTRY_URL=aprimediet
UBUNTU_VERSION=noble
NODE_VERSION=16.20.2
push: true
tags: |
aprimediet/nodejs:16-ubuntu
aprimediet/nodejs:16
- name: Build and push 18.19.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
build-args: |
REGISTRY_URL=aprimediet
UBUNTU_VERSION=noble
NODE_VERSION=18.19.1
push: true
tags: |
aprimediet/nodejs:18-ubuntu
aprimediet/nodejs:18
- name: Build and push 20.11.1
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.ubuntu
build-args: |
REGISTRY_URL=aprimediet
UBUNTU_VERSION=noble
NODE_VERSION=20.15.1
push: true
tags: |
aprimediet/nodejs:20-ubuntu
aprimediet/nodejs:20
aprimediet/nodejs:latest-ubuntu
aprimediet/nodejs:latest

View File

@ -1,4 +1,4 @@
name: Build and Push Ubuntu PHP 8.3 Image name: Build and Push Ubuntu NodeJS Image to Winter Access Registry
on: on:
push: push:
branches: branches:
@ -25,6 +25,7 @@ jobs:
context: . context: .
file: Dockerfile.ubuntu file: Dockerfile.ubuntu
build-args: | build-args: |
UBUNTU_VERSION=noble
NODE_VERSION=14.21.3 NODE_VERSION=14.21.3
push: true push: true
tags: | tags: |
@ -36,6 +37,7 @@ jobs:
context: . context: .
file: Dockerfile.ubuntu file: Dockerfile.ubuntu
build-args: | build-args: |
UBUNTU_VERSION=noble
NODE_VERSION=16.20.2 NODE_VERSION=16.20.2
push: true push: true
tags: | tags: |
@ -47,6 +49,7 @@ jobs:
context: . context: .
file: Dockerfile.ubuntu file: Dockerfile.ubuntu
build-args: | build-args: |
UBUNTU_VERSION=noble
NODE_VERSION=18.19.1 NODE_VERSION=18.19.1
push: true push: true
tags: | tags: |
@ -58,7 +61,8 @@ jobs:
context: . context: .
file: Dockerfile.ubuntu file: Dockerfile.ubuntu
build-args: | build-args: |
NODE_VERSION=20.11.1 UBUNTU_VERSION=noble
NODE_VERSION=20.15.1
push: true push: true
tags: | tags: |
git.winteraccess.id/${{ gitea.repository }}:20-ubuntu git.winteraccess.id/${{ gitea.repository }}:20-ubuntu

View File

@ -2,6 +2,7 @@
# 16.20.2 = 3.16 # 16.20.2 = 3.16
# 18.19.1 = 3.18 # 18.19.1 = 3.18
# 20.11.1 = 3.19 # 20.11.1 = 3.19
# 20.15.1 = 3.20
ARG REGISTRY_URL=git.winteraccess.id/docker ARG REGISTRY_URL=git.winteraccess.id/docker
ARG ALPINE_VERSION=3.19 ARG ALPINE_VERSION=3.19