Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Mar 4, 2024
1 parent d630e2d commit 127a80e
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,8 @@ jobs:
export "name=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest"
echo "image=${name,,}" >> ${GITHUB_OUTPUT}
- name: Cache Composer
id: cache-composer-files
uses: actions/cache@v3
with:
path: composer-cache-files
key: composer-cache-${{ hashFiles('composer.lock') }}

- name: Inject Cache
uses: reproducible-containers/buildkit-cache-dance@v2.1.4
with:
cache-source: composer-cache-files
cache-target: /root/.composer
skip-extraction: ${{ steps.cache-composer-files.outputs.cache-hit }}

- name: Generate image
run: shopware-cli project docker build ${{ steps.image.outputs.image }} --generate-only

- name: Show Dockerfile
run: cat Dockerfile
run: docker build -t ${{ steps.image.outputs.image }} .

- name: Build and push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 127a80e

Please sign in to comment.