Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build and Push Images

on:
push:
branches:
- '**'
tags:
- '**'
paths:
- 'images/**'
schedule:
# Run weekly on Sunday at 11:00 PM UTC (Sunday-Monday night depending on timezone)
- cron: '0 23 * * 0'
workflow_dispatch:

env:
REGISTRY: ghcr.io

jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Docker Meta (Base)
id: meta-base
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/base
bake-target: base
tags: |
type=sha
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}

- name: Docker Meta (NodeJS)
id: meta-nodejs
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository }}/nodejs
bake-target: nodejs
tags: |
type=sha
type=ref,event=branch
type=ref,event=tag
type=raw,value=latest,enable=${{ github.ref == 'refs/heads/main' }}

- name: Build and push
uses: docker/bake-action@v5
with:
workdir: ./images
push: true
files: |
./docker-bake.hcl
${{ steps.meta-base.outputs.bake-file }}
${{ steps.meta-nodejs.outputs.bake-file }}
set: |
base.cache-from=type=gha,scope=base-${{ github.ref_name }}
base.cache-to=type=gha,mode=max,scope=base-${{ github.ref_name }}
nodejs.cache-from=type=gha,scope=nodejs-${{ github.ref_name }}
nodejs.cache-to=type=gha,mode=max,scope=nodejs-${{ github.ref_name }}
47 changes: 0 additions & 47 deletions .github/workflows/build-templates.yml

This file was deleted.

1 change: 0 additions & 1 deletion ci-cd-automation/README.md

This file was deleted.

46 changes: 0 additions & 46 deletions ci-cd-automation/check-container-exists.sh

This file was deleted.

29 changes: 0 additions & 29 deletions ci-cd-automation/delete-container.sh

This file was deleted.

23 changes: 0 additions & 23 deletions ci-cd-automation/helper-scripts/PVE_user_authentication.sh

This file was deleted.

56 changes: 0 additions & 56 deletions ci-cd-automation/helper-scripts/create-template.sh

This file was deleted.

46 changes: 0 additions & 46 deletions ci-cd-automation/helper-scripts/delete-runner.sh

This file was deleted.

37 changes: 0 additions & 37 deletions ci-cd-automation/helper-scripts/repository_status.sh

This file was deleted.

Loading
Loading