This commit is contained in:
@@ -29,16 +29,34 @@ jobs:
|
|||||||
|
|
||||||
- name: Compile assets
|
- name: Compile assets
|
||||||
run: APP_ENV=build php bin/console asset-map:compile
|
run: APP_ENV=build php bin/console asset-map:compile
|
||||||
#
|
|
||||||
# - name: Create artifact
|
|
||||||
# run: |
|
|
||||||
# file="${{ gitea.REF_NAME }}.tar.gz"
|
|
||||||
# touch $file
|
|
||||||
# tar -czf $file --exclude=$file .
|
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Create docker image
|
||||||
uses: actions/upload-artifact@v3
|
run: |
|
||||||
|
version="${{ gitea.REF_NAME }}"
|
||||||
|
docker build -f docker/Dockerfile.app \
|
||||||
|
-t code.caldwell.digital/home/torsearch-app:${version} \
|
||||||
|
-t code.caldwell.digital/home/torsearch-app:latest \
|
||||||
|
--build-arg "APP_VERSION=${version}" \
|
||||||
|
--build-arg "TMDB_API=${TMDB_API}" \
|
||||||
|
.
|
||||||
|
docker push code.caldwell.digital/home/torsearch-app:${version}
|
||||||
|
docker push code.caldwell.digital/home/torsearch-app:latest
|
||||||
|
|
||||||
|
- name: Create artifact
|
||||||
|
run: |
|
||||||
|
file="torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||||
|
touch $file
|
||||||
|
tar -czf $file --exclude=$file .
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
name: "${{ gitea.REF_NAME }}"
|
files: |-
|
||||||
path: "*"
|
"torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||||
compression_level: 9
|
|
||||||
|
# - name: Upload artifact
|
||||||
|
# uses: actions/upload-artifact@v3
|
||||||
|
# with:
|
||||||
|
# name: "torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||||
|
# path: "torsearch-${{ gitea.REF_NAME }}.tar.gz"
|
||||||
|
# compression_level: 9
|
||||||
|
|||||||
Reference in New Issue
Block a user