refactor: cleanup scripts and config
This commit is contained in:
18
.github/workflows/ci.yaml
vendored
18
.github/workflows/ci.yaml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user