This commit is contained in:
Andras Bacsai 2023-04-28 14:05:33 +02:00
parent 19137ad705
commit 9f19e9161f
2 changed files with 6 additions and 8 deletions

View File

@ -19,22 +19,19 @@ jobs:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Sync configuration files to BunnyCDN
run: |
docker run --rm -v "$(pwd):/app" -w /app php:8.2-alpine3.16 php artisan app:sync-to-bunny-cdn --env=secrets
- name: Get Version
id: version
run: |
echo "VERSION=$(docker run --rm -v "$(pwd):/app" -w /app php:8.2-alpine3.16 php bootstrap/getVersion.php)"|xargs >> $GITHUB_OUTPUT
- name: Build image and push to registry
uses: docker/build-push-action@v3
uses: docker/build-push-action@v4
with:
context: .
file: docker/prod-ssu/Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}
# - uses: sarisia/actions-status-discord@v1
# if: always()
# with:
# webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}
- uses: sarisia/actions-status-discord@v1
if: always()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_DEV_RELEASE_CHANNEL }}

View File

@ -5,6 +5,7 @@ ARG TARGETPLATFORM
ARG DOCKER_VERSION=23.0.5
# https://github.com/docker/compose/releases
# Reverted to 2.6.1 because of this https://github.com/docker/compose/issues/9704. 2.9.0 still has a bug.
# Using the latest now
ARG DOCKER_COMPOSE_VERSION=2.17.3
# https://github.com/buildpacks/pack/releases
ARG PACK_VERSION=0.27.0