44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: Build and Push Ubuntu Image to Winter Access 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 Winter Access Git Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.winteraccess.id
|
|
username: aditya.prima
|
|
password: ${{ secrets.PATOKEN }}
|
|
- 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: |
|
|
git.winteraccess.id/${{ gitea.repository }}:22.04
|
|
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 |