Skip to content

Build image

Build image #154

Workflow file for this run

name: Build image
on:
workflow_dispatch:
schedule:
- cron: '30 2 * * *'
jobs:
build:
name: Build image
runs-on: ubuntu-latest
env:
IMAGE_NAME: image
REGISTRY: ghcr.io/queil
steps:
- name: Clone the repository
uses: actions/checkout@v3
- name: "Fix no space left on device"
run: rm -rf /opt/hostedtoolcache
- name: Log in to the GitHub Container registry
uses: redhat-actions/podman-login@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# ---- AKS ----
# - name: aks
# id: aks
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: aks
# context: .
# containerfiles: |
# ./images/aks.Containerfile
# - name: Push aks
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.aks.outputs.image }}
# tags: ${{ steps.aks.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- DEVOPS ----
# - name: devops
# id: devops
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: devops
# context: .
# containerfiles: |
# ./images/devops.Containerfile
#
# - name: Push devops
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.devops.outputs.image }}
# tags: ${{ steps.devops.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- HUGO ----
# - name: hugo
# id: hugo
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: hugo
# context: .
# containerfiles: |
# ./images/hugo.Containerfile
# - name: Push hugo
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.hugo.outputs.image }}
# tags: ${{ steps.hugo.outputs.tags }}
# registry: ${{ env.REGISTRY }}
- name: nodejs
id: nodejs
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: nodejs
context: .
containerfiles: |
./images/nodejs.Containerfile
- name: Push nodejs
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.nodejs.outputs.image }}
tags: ${{ steps.nodejs.outputs.tags }}
registry: ${{ env.REGISTRY }}
# ---- MKDOCS ----
# - name: mkdocs
# id: mkdocs
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: mkdocs
# context: .
# containerfiles: |
# ./images/mkdocs.Containerfile
#
# - name: Push mkdocs
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.mkdocs.outputs.image }}
# tags: ${{ steps.mkdocs.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- CDK ----
# - name: cdk
# id: cdk
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: cdk
# context: .
# containerfiles: |
# ./images/cdk.Containerfile
#
# - name: Push cdk
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.cdk.outputs.image }}
# tags: ${{ steps.cdk.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# ---- DOTNET 8 ----
- name: dotnet-8
id: dotnet8
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: dotnet-8
context: .
containerfiles: |
./images/dotnet-8.Containerfile
- name: Push dotnet-8
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.dotnet8.outputs.image }}
tags: ${{ steps.dotnet8.outputs.tags }}
registry: ${{ env.REGISTRY }}
- name: aks-dotnet
id: aks-dotnet
uses: redhat-actions/buildah-build@v2
with:
image: ${{ env.IMAGE_NAME }}
tags: aks-dotnet
context: .
containerfiles: |
./images/aks-dotnet.Containerfile
- name: Push aks-dotnet
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.aks-dotnet.outputs.image }}
tags: ${{ steps.aks-dotnet.outputs.tags }}
registry: ${{ env.REGISTRY }}
# ---- RUST ----
# - name: rust
# id: rust
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: rust
# context: .
# containerfiles: |
# ./images/rust.Containerfile
#
# - name: Push rust
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.rust.outputs.image }}
# tags: ${{ steps.rust.outputs.tags }}
# registry: ${{ env.REGISTRY }}
# # ---- PYTHON ----
#
# - name: python
# id: python
# uses: redhat-actions/buildah-build@v2
# with:
# image: ${{ env.IMAGE_NAME }}
# tags: python
# context: .
# containerfiles: |
# ./images/python.Containerfile
#
# - name: Push python
# uses: redhat-actions/push-to-registry@v2
# with:
# image: ${{ steps.python.outputs.image }}
# tags: ${{ steps.python.outputs.tags }}
# registry: ${{ env.REGISTRY }}