mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-11-27 12:34:48 +01:00
Build Docker image for Docker Hub in the GitHub Action
This commit is contained in:
parent
e30d4bd13b
commit
9a792f073b
14
.github/workflows/readme-release.yml
vendored
14
.github/workflows/readme-release.yml
vendored
@ -148,6 +148,20 @@ jobs:
|
||||
printf 'Release notes:\n%s\n' "$RELEASE_NOTES"
|
||||
printf 'RELEASE_NAME=v%s\n' "$VERSIONTAG_THIS" >> "$GITHUB_ENV"
|
||||
printf 'RELEASE_NOTES<<EOF\n%s\nEOF\n' "$RELEASE_NOTES" >> "$GITHUB_ENV"
|
||||
- name: Login to Docker Hub
|
||||
if: env.VERSIONTAG_THIS != ''
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: mlocati
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build docker image and push to Docker Hub
|
||||
uses: docker/build-push-action@v2
|
||||
if: env.VERSIONTAG_THIS != ''
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
mlocati/php-extension-installer:${{ env.VERSIONTAG_THIS }}
|
||||
mlocati/php-extension-installer:latest
|
||||
- name: Create release
|
||||
id: create_release
|
||||
if: env.VERSIONTAG_THIS != ''
|
||||
|
Loading…
Reference in New Issue
Block a user