Skip to content

Release php-7.4 image #48

Release php-7.4 image

Release php-7.4 image #48

name: Release php-7.4 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 7.4
uses: docker/build-push-action@v3
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./php-7.4
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWERCASE }}:7.4