Update docker-image.yml

Publish actions
This commit is contained in:
2022-03-04 10:37:11 +02:00
committed by GitHub
parent 0eace325f4
commit 98e1e1bb76

View File

@@ -12,10 +12,15 @@ on:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build . --file Dockerfile --tag php-imagick:$(date +%s)
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: ivuorinen/docker-php-with-imagick
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
default_branch: main
tags: "latest,php74"
cache: ${{ github.event_name != 'schedule' }}