Set up container image for Docker-based CI workflow
All checks were successful
Build and Push Docker Images / build-and-push (push) Successful in 1m53s

Added a container image definition to use ghcr.io/catthehacker/ubuntu:act-latest in the build-and-push job. This enhances compatibility when running the workflow locally with act and ensures consistency in the execution environment. Corrected spacing in the secrets configuration for better code formatting.
This commit is contained in:
2025-02-27 17:23:24 +01:00
parent 1af4f1c07d
commit 58c360285f

View File

@@ -9,7 +9,8 @@ on:
jobs:
build-and-push:
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
@@ -21,7 +22,7 @@ jobs:
uses: docker/login-action@v3
with:
registry: gitea.pragmazest.com
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_ACCESS_TOKEN }}
- name: Extract metadata