diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index 7d7dee485536..a1bd3f7ccf03 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -32,18 +32,24 @@ jobs: uses: docker/build-push-action@v4 with: context: . - push: false + push: true platforms: linux/amd64,linux/arm64/v8 tags: amirpourmand/al-folio:slim - # Slim it! - - uses: kitabisa/docker-slim-action@v1 + - name: update docker-compose + shell: bash + run: | + sed -i "s|\.:|${{ github.workspace }}:|g" ${{ github.workspace }}/docker-compose.yml + cat ${{ github.workspace }}/docker-compose.yml + + - uses: kitabisa/docker-slim-action@v1.0.3 env: - DSLIM_COMPOSE_FILE: docker-compose.yml + DSLIM_COMPOSE_FILE: ${{ github.workspace }}/docker-compose.yml DSLIM_TARGET_COMPOSE_SVC: jekyll + DSLIM_CONTINUE_AFTER: signal with: - target: amirpourmand/al-folio:slim + target: amirpourmand/al-folio tag: "slim" # Push to the registry - - run: docker image push amirpourmand/al-folio:slim \ No newline at end of file + - run: docker image push amirpourmand/al-folio:slim