Browse Source

Merge branch 'master' of https://github.com/GilbN/theme.park

pull/335/head
GilbN 3 years ago
parent
commit
c5818fe3c9
  1. 15
      .github/workflows/docker-build.yml

15
.github/workflows/docker-build.yml

@ -1,6 +1,7 @@
name: docker build name: docker build
on: on:
release: release:
types: [published]
branches: branches:
- live - live
- live_develop - live_develop
@ -24,12 +25,13 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PAT }} password: ${{ secrets.GH_PAT }}
- name: build&push - name: build&push live
if: ${{ github.ref == 'refs/heads/live' }} if: ${{ github.ref == 'refs/heads/live' }}
run: | 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 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 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: | 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:develop --tag ghcr.io/gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} 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 docker push --all-tags ghcr.io/gilbn/theme.park
@ -51,12 +53,13 @@ jobs:
with: with:
username: ${{ secrets.DH_USER }} username: ${{ secrets.DH_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build&push - name: build&push dh live
if: ${{ github.ref == 'refs/heads/live' }} if: ${{ github.ref == 'refs/heads/live' }}
run: | 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 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 docker push ghcr.io/gilbn/theme.park
if: ${{ github.ref == 'refs/heads/live_develop' }} - name: build&push dh dev
if: ${{ github.ref == 'refs/heads/live_develop' }}
run: | 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 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 docker push --all-tags gilbn/theme.park
Loading…
Cancel
Save