1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-02 21:47:12 +02:00
This commit is contained in:
GilbN 2022-03-22 20:23:15 +00:00
parent 4848e6cb56
commit 2eb0ee5579
3 changed files with 6 additions and 5 deletions

View File

@ -29,12 +29,12 @@ jobs:
- name: build&push master - name: build&push master
if: ${{ github.event.release.target_commitish == 'live' }} if: ${{ github.event.release.target_commitish == 'live' }}
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 ghcr.io/gilbn/theme.park docker push ghcr.io/gilbn/theme.park
- name: build&push develop - name: build&push develop
if: ${{ github.ref == 'refs/heads/develop' }} if: ${{ github.ref == 'refs/heads/develop' }}
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:develop }} 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:develop .
docker push --all-tags ghcr.io/gilbn/theme.park docker push --all-tags ghcr.io/gilbn/theme.park
push_to_dockerhub: push_to_dockerhub:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -57,11 +57,11 @@ jobs:
- name: build&push dh master - name: build&push dh master
if: ${{ github.event.release.target_commitish == 'live' }} if: ${{ github.event.release.target_commitish == 'live' }}
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 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 gilbn/theme.park:${{ steps.get_version.outputs.VERSION }} .
docker push gilbn/theme.park docker push gilbn/theme.park
- name: build&push dh develop - name: build&push dh develop
if: ${{ github.ref == 'refs/heads/develop' }} if: ${{ github.ref == 'refs/heads/develop' }}
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:develop --tag }} docker build --build-arg TP_RELEASE=${{ steps.get_version.outputs.VERSION }} --build-arg BUILD_DATE=${{ steps.date_time.outputs.NOW }} --tag gilbn/theme.park:develop .
docker push --all-tags gilbn/theme.park docker push --all-tags gilbn/theme.park

View File

@ -18,6 +18,6 @@ apk add --no-cache --virtual=build-dependencies \
WORKDIR /app WORKDIR /app
COPY css/ /app/themepark/css/ COPY css/ /app/themepark/css/
COPY resources/ /app/themepark/resources/ COPY resources/ /app/themepark/resources/
COPY themes.py index.html /app/themepark/ COPY themes.py index.html CNAME /app/themepark/
COPY docker/root/ / COPY docker/root/ /

View File

@ -31,6 +31,7 @@ cp -R /app/themepark/css /config/www
cp -R /app/themepark/resources /config/www cp -R /app/themepark/resources /config/www
cp /app/themepark/index.html /config/www cp /app/themepark/index.html /config/www
cp /app/themepark/themes.py /config/www cp /app/themepark/themes.py /config/www
cp /app/themepark/CNAME /config/www
# permissions # permissions
chown -R abc:abc \ chown -R abc:abc \