From 94c47a47c1b933cca648c015983be94115ccd911 Mon Sep 17 00:00:00 2001 From: Aditya Prima Date: Thu, 18 Jul 2024 15:57:41 +0700 Subject: [PATCH] Added dockerio actions, updated latest to 20.15.1, and updated ubuntu base image to use 24.04 / noble --- .gitea/workflows/alpine-dockerio.yaml | 67 ++++++++++++++++++++++++ .gitea/workflows/alpine-winter.yaml | 6 +-- .gitea/workflows/ubuntu-dockerio.yaml | 75 +++++++++++++++++++++++++++ .gitea/workflows/ubuntu-winter.yaml | 8 ++- Dockerfile.alpine | 1 + 5 files changed, 152 insertions(+), 5 deletions(-) create mode 100644 .gitea/workflows/alpine-dockerio.yaml create mode 100644 .gitea/workflows/ubuntu-dockerio.yaml diff --git a/.gitea/workflows/alpine-dockerio.yaml b/.gitea/workflows/alpine-dockerio.yaml new file mode 100644 index 0000000..2ed68d7 --- /dev/null +++ b/.gitea/workflows/alpine-dockerio.yaml @@ -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 diff --git a/.gitea/workflows/alpine-winter.yaml b/.gitea/workflows/alpine-winter.yaml index 37fc9dd..32f44bd 100644 --- a/.gitea/workflows/alpine-winter.yaml +++ b/.gitea/workflows/alpine-winter.yaml @@ -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: push: branches: @@ -49,13 +49,13 @@ jobs: push: true tags: | 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 with: context: . file: Dockerfile.alpine build-args: | - ALPINE_VERSION=3.19 + ALPINE_VERSION=3.20 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:20-alpine diff --git a/.gitea/workflows/ubuntu-dockerio.yaml b/.gitea/workflows/ubuntu-dockerio.yaml new file mode 100644 index 0000000..5a2db94 --- /dev/null +++ b/.gitea/workflows/ubuntu-dockerio.yaml @@ -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 diff --git a/.gitea/workflows/ubuntu-winter.yaml b/.gitea/workflows/ubuntu-winter.yaml index 29b5502..6972453 100644 --- a/.gitea/workflows/ubuntu-winter.yaml +++ b/.gitea/workflows/ubuntu-winter.yaml @@ -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: push: branches: @@ -25,6 +25,7 @@ jobs: context: . file: Dockerfile.ubuntu build-args: | + UBUNTU_VERSION=noble NODE_VERSION=14.21.3 push: true tags: | @@ -36,6 +37,7 @@ jobs: context: . file: Dockerfile.ubuntu build-args: | + UBUNTU_VERSION=noble NODE_VERSION=16.20.2 push: true tags: | @@ -47,6 +49,7 @@ jobs: context: . file: Dockerfile.ubuntu build-args: | + UBUNTU_VERSION=noble NODE_VERSION=18.19.1 push: true tags: | @@ -58,7 +61,8 @@ jobs: context: . file: Dockerfile.ubuntu build-args: | - NODE_VERSION=20.11.1 + UBUNTU_VERSION=noble + NODE_VERSION=20.15.1 push: true tags: | git.winteraccess.id/${{ gitea.repository }}:20-ubuntu diff --git a/Dockerfile.alpine b/Dockerfile.alpine index d77060f..4f717d5 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -2,6 +2,7 @@ # 16.20.2 = 3.16 # 18.19.1 = 3.18 # 20.11.1 = 3.19 +# 20.15.1 = 3.20 ARG REGISTRY_URL=git.winteraccess.id/docker ARG ALPINE_VERSION=3.19