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' }}