Add PHP 8.4 base image with build workflow
Some checks failed
Build and Push Chill base image / build-and-push (push) Failing after 6s
Some checks failed
Build and Push Chill base image / build-and-push (push) Failing after 6s
This commit is contained in:
54
.gitea/workflows/build-php-8.4.yaml
Normal file
54
.gitea/workflows/build-php-8.4.yaml
Normal file
@@ -0,0 +1,54 @@
|
||||
name: Build and Push Chill base image
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: cth-ubuntu-latest
|
||||
|
||||
env:
|
||||
IMAGE_NAME: chill/base-image
|
||||
IMAGE_FLAVOR: 8.4
|
||||
CONTEXT: php/8.4
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: https://github.com/actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: https://github.com/docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log in to Docker hub
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ vars.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: |
|
||||
${{ IMAGE_NAME }}
|
||||
flavor: |
|
||||
prefix=${{ env.IMAGE_FLAVOR }}
|
||||
tags: |
|
||||
type=schedule
|
||||
type=edge
|
||||
|
||||
- name: Debug metadata
|
||||
run: |
|
||||
echo "Tags: ${{ steps.meta.outputs.tags }}"
|
||||
echo "Labels: ${{ steps.meta.outputs.labels }}"
|
||||
|
||||
- name: Build and push
|
||||
id: build-push
|
||||
uses: https://github.com/docker/build-push-action@v5
|
||||
with:
|
||||
context: php/8.4
|
||||
file: Dockerfile
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Reference in New Issue
Block a user