From fdc3dc25b5a92d9538eae5594e3e3ec7a139edfb Mon Sep 17 00:00:00 2001 From: Shyim Date: Tue, 30 Jan 2024 14:19:47 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..3743d74 --- /dev/null +++ b/.github/workflows/build.yml @@ -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