Build Docker image for Docker Hub in the GitHub Action
parent
e30d4bd13b
commit
9a792f073b
|
@ -148,6 +148,20 @@ jobs:
|
||||||
printf 'Release notes:\n%s\n' "$RELEASE_NOTES"
|
printf 'Release notes:\n%s\n' "$RELEASE_NOTES"
|
||||||
printf 'RELEASE_NAME=v%s\n' "$VERSIONTAG_THIS" >> "$GITHUB_ENV"
|
printf 'RELEASE_NAME=v%s\n' "$VERSIONTAG_THIS" >> "$GITHUB_ENV"
|
||||||
printf 'RELEASE_NOTES<<EOF\n%s\nEOF\n' "$RELEASE_NOTES" >> "$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
|
- name: Create release
|
||||||
id: create_release
|
id: create_release
|
||||||
if: env.VERSIONTAG_THIS != ''
|
if: env.VERSIONTAG_THIS != ''
|
||||||
|
|
Loading…
Reference in New Issue