From 98e1e1bb761f133b61d39d2e6a4e682cf83b8b5f Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Fri, 4 Mar 2022 10:37:11 +0200 Subject: [PATCH] Update docker-image.yml Publish actions --- .github/workflows/docker-image.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ef89176..1b72a05 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -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' }}