Skip to content

Release php-8.0 image #29

Release php-8.0 image

Release php-8.0 image #29

name: Release php-8.0 image
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * 1' # Every monday 08:00
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Convert IMAGE_NAME tp lowercase
run: |
echo "IMAGE_NAME_LOWERCASE=${IMAGE_NAME,,}" >>${GITHUB_ENV}
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push image - PHP 8.0
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./php-8.0
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWERCASE }}:8.0