refactor: cleanup scripts and config

This commit is contained in:
Job
2025-10-12 11:52:31 +02:00
parent 2770628074
commit e3d9dfd392
13 changed files with 118 additions and 112 deletions

View File

@@ -2,9 +2,9 @@ name: Build container
on:
push:
pull_request:
branches: [ "main" ]
branches: ["main"]
schedule:
- cron: '0 16 * * FRI'
- cron: "0 16 * * FRI"
jobs:
build:
@@ -18,7 +18,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push base container
uses: docker/build-push-action@v5
@@ -26,18 +26,18 @@ jobs:
context: ./containers/base
file: ./containers/base/Containerfile
push: true
tags: ghcr.io/${{ github.actor }}/base:latest
tags: ghcr.io/${{ github.repository_owner }}/base:latest
- name: Build and push go container
uses: docker/build-push-action@v5
with:
context: ./containers/go
file: ./containers/go/Containerfile
push: true
tags: ghcr.io/${{ github.actor }}/go:latest
- name: Build and push kube container
tags: ghcr.io/${{ github.repository_owner }}/go:latest
- name: Build and push infra container
uses: docker/build-push-action@v5
with:
context: ./containers/kube
file: ./containers/kube/Containerfile
context: ./containers/infra
file: ./containers/infra/Containerfile
push: true
tags: ghcr.io/${{ github.actor }}/kube:latest
tags: ghcr.io/${{ github.repository_owner }}/infra:latest