mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-20 01:52:32 +01:00
deploy: 9308378a5b
This commit is contained in:
parent
c70b3f5500
commit
4da5474726
14
.github/workflows/docker-build.yml
vendored
14
.github/workflows/docker-build.yml
vendored
@ -12,6 +12,8 @@ on:
|
|||||||
options:
|
options:
|
||||||
- master
|
- master
|
||||||
- develop
|
- develop
|
||||||
|
tag:
|
||||||
|
description: 'Add a tag'
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
@ -38,10 +40,14 @@ jobs:
|
|||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GH_PAT }}
|
password: ${{ secrets.GH_PAT }}
|
||||||
- name: build&push master
|
- name: build&push master
|
||||||
if: ${{ github.event.release.target_commitish == 'master' || github.event.inputs.branch == 'master' }}
|
if: ${{ github.event.release.target_commitish == 'master' }}
|
||||||
run: |
|
run: |
|
||||||
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
|
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
|
||||||
docker push --all-tags ghcr.io/gilbn/theme.park
|
docker push --all-tags ghcr.io/gilbn/theme.park
|
||||||
|
if: ${{ github.event.inputs.branch == 'master' }}
|
||||||
|
run: |
|
||||||
|
docker build --build-arg TP_RELEASE=${{ github.event.inputs.tag }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park --tag ghcr.io/gilbn/theme.park:${{ github.event.inputs.tag }} .
|
||||||
|
docker push --all-tags ghcr.io/gilbn/theme.park
|
||||||
- name: build&push develop
|
- name: build&push develop
|
||||||
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
||||||
run: |
|
run: |
|
||||||
@ -66,10 +72,14 @@ jobs:
|
|||||||
username: ${{ secrets.DH_USER }}
|
username: ${{ secrets.DH_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: build&push dh master
|
- name: build&push dh master
|
||||||
if: ${{ github.event.release.target_commitish == 'master' || github.event.inputs.branch == 'master' }}
|
if: ${{ github.event.release.target_commitish == 'master' }}
|
||||||
run: |
|
run: |
|
||||||
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park --tag gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
|
docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park --tag gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
|
||||||
docker push --all-tags gilbn/theme.park
|
docker push --all-tags gilbn/theme.park
|
||||||
|
if: ${{ github.event.inputs.branch == 'master' }}
|
||||||
|
run: |
|
||||||
|
docker build --build-arg TP_RELEASE=${{ github.event.inputs.tag }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park --tag gilbn/theme.park:${{ github.event.inputs.tag }} .
|
||||||
|
docker push --all-tags gilbn/theme.park
|
||||||
- name: build&push dh develop
|
- name: build&push dh develop
|
||||||
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
if: ${{ github.ref == 'refs/heads/develop' || github.event.inputs.branch == 'develop' }}
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user