- Updated .dockerignore to properly include necessary directories and LICENSE file - Configured Docker build action to use specific Dockerfile path in Forgejo CI - Added image documentation section in README.md - Fixed navigation links to use absolute paths in base layout - Updated edit link in footer to use correct Codeberg URL pattern - Improved image README with proper front matter and formatting
43 lines
1014 B
YAML
43 lines
1014 B
YAML
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
jobs:
|
|
build:
|
|
name: Build Docker Image
|
|
runs-on: ubuntu-latest
|
|
container: catthehacker/ubuntu:act-latest
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Create Kubeconfig for Buildx
|
|
run: |
|
|
mkdir -p $HOME/.kube
|
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
driver: kubernetes
|
|
driver-opts: |
|
|
namespace=codeberg
|
|
|
|
- name: Login to Docker Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: janikvonrotz
|
|
password: ${{ secrets.DOCKER_PAT }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
file: image/Dockerfile
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: janikvonrotz/taskfile.build:latest
|
|
push: true
|