1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-11-04 10:12:31 +01:00

split build&push

This commit is contained in:
GilbN 2022-03-20 18:04:35 +01:00 committed by GitHub
parent 19b3a4405a
commit e33febebe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,12 +25,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }}
- name: build&push
if: ${{ github.ref == 'refs/heads/live' }}
run: |
if1: "${{ github.ref == 'refs/heads/live' }}"
run1: |
docker build docker/ --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 ghcr.io/gilbn/theme.park
if: ${{ github.ref == 'refs/heads/live_develop' }}
run: |
if2: "${{ github.ref == 'refs/heads/live_develop' }}"
run2: |
docker build docker/ --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag ghcr.io/gilbn/theme.park:develop --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }}
docker push --all-tags ghcr.io/gilbn/theme.park
push_to_dockerhub:
@ -51,12 +51,13 @@ jobs:
with:
username: ${{ secrets.DH_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build&push
if: ${{ github.ref == 'refs/heads/live' }}
- name: build&push live
if: "${{ github.ref == 'refs/heads/live' }}"
run: |
docker build docker/ --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 ghcr.io/gilbn/theme.park
if: ${{ github.ref == 'refs/heads/live_develop' }}
- name: build&push dev
if: "${{ github.ref == 'refs/heads/live_develop' }}"
run: |
docker build docker/ --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park:develop --tag gilbn/theme.park:${{ steps.get_version.outputs.VERSION }}
docker push --all-tags gilbn/theme.park