ubi9/.gitea/workflows/winter.yaml

143 lines
4.3 KiB
YAML

name: Build and Push Redhat UBI9 Image
on:
push:
branches:
- master
jobs:
build-micro:
name: Build and push ubi9-micro 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 Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push 9.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.micro
build-args: |
UBI_VERSION=9.3
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.3-micro
- name: Build and push 9.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.micro
build-args: |
UBI_VERSION=9.4
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.4-micro
- name: Build and push 9.5
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.micro
build-args: |
UBI_VERSION=9.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.5-micro
git.winteraccess.id/${{ gitea.repository }}:9-micro
build-minimal:
name: Build and push ubi9-minimal 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 Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push 9.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.minimal
build-args: |
UBI_VERSION=9.3
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.3-minimal
- name: Build and push 9.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.minimal
build-args: |
UBI_VERSION=9.4
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.4-minimal
- name: Build and push 9.5
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.minimal
build-args: |
UBI_VERSION=9.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.5-minimal
git.winteraccess.id/${{ gitea.repository }}:9-minimal
build:
name: Build and push ubi9 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 Registry
uses: docker/login-action@v3
with:
registry: git.winteraccess.id
username: ${{ vars.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push 9.3
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
UBI_VERSION=9.3
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.3
- name: Build and push 9.4
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
UBI_VERSION=9.4
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.4
- name: Build and push 9.5
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
UBI_VERSION=9.5
push: true
tags: |
git.winteraccess.id/${{ gitea.repository }}:9.5
git.winteraccess.id/${{ gitea.repository }}:9
git.winteraccess.id/${{ gitea.repository }}:latest