diff --git a/.gitea/workflows/sonarqube_scans.yml b/.gitea/workflows/sonarqube_scans.yml index 7901dac..d980cad 100644 --- a/.gitea/workflows/sonarqube_scans.yml +++ b/.gitea/workflows/sonarqube_scans.yml @@ -29,16 +29,34 @@ jobs: - name: Compile assets 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 - uses: actions/upload-artifact@v3 + - name: Create docker image + 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: - name: "${{ gitea.REF_NAME }}" - path: "*" - compression_level: 9 + files: |- + "torsearch-${{ gitea.REF_NAME }}.tar.gz" + +# - 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