Added dockerio registry action, updated latest version to ubuntu 24.04 / noble
This commit is contained in:
parent
19f62c6621
commit
c95ca19734
|
@ -0,0 +1,44 @@
|
||||||
|
name: Build and Push Ubuntu 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 22.04 / jammy
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=jammy
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/ubuntu:22.04
|
||||||
|
aprimediet/ubuntu:jammy
|
||||||
|
- name: Build and push 24.04 / noble
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=noble
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
aprimediet/ubuntu:24.04
|
||||||
|
aprimediet/ubuntu:noble
|
||||||
|
aprimediet/ubuntu:latest
|
|
@ -1,4 +1,4 @@
|
||||||
name: Build and Push Ubuntu Image
|
name: Build and Push Ubuntu Image to Winter Access Registry
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
|
@ -30,4 +30,15 @@ jobs:
|
||||||
tags: |
|
tags: |
|
||||||
git.winteraccess.id/${{ gitea.repository }}:22.04
|
git.winteraccess.id/${{ gitea.repository }}:22.04
|
||||||
git.winteraccess.id/${{ gitea.repository }}:jammy
|
git.winteraccess.id/${{ gitea.repository }}:jammy
|
||||||
|
- name: Build and push 24.04 / noble
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: Dockerfile
|
||||||
|
build-args: |
|
||||||
|
UBUNTU_VERSION=noble
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:24.04
|
||||||
|
git.winteraccess.id/${{ gitea.repository }}:jammy
|
||||||
git.winteraccess.id/${{ gitea.repository }}:latest
|
git.winteraccess.id/${{ gitea.repository }}:latest
|
|
@ -1,9 +1,9 @@
|
||||||
ARG UBUNTU_VERSION=jammy
|
ARG UBUNTU_VERSION=noble
|
||||||
|
|
||||||
FROM ubuntu:${UBUNTU_VERSION} AS base
|
FROM ubuntu:${UBUNTU_VERSION} AS base
|
||||||
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
|
LABEL maintainer="<Aditya Prima> aprimediet@gmail.com"
|
||||||
|
|
||||||
ARG UBUNTU_VERSION=jammy
|
ARG UBUNTU_VERSION=noble
|
||||||
# ARG UBUNTU_MIRROR=http://repo.ugm.ac.id/ubuntu
|
# ARG UBUNTU_MIRROR=http://repo.ugm.ac.id/ubuntu
|
||||||
# ARG SECURITY_MIRROR=http://security.ubuntu.com/ubuntu
|
# ARG SECURITY_MIRROR=http://security.ubuntu.com/ubuntu
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue