Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shyim authored Jan 30, 2024
1 parent 3773efd commit fdc3dc2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Image
on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Login into Github Docker Registery
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin

- name: Install Shopware-CLI
uses: FriendsOfShopware/shopware-cli-action@v1

- name: Build image
run: shopware-cli project docker build ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest

- name: Push
run: docker push ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest

0 comments on commit fdc3dc2

Please sign in to comment.