-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (28 loc) · 1.01 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build Image
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- 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: Make image name small
id: image
run: |
export "name=ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}:latest"
echo "image=${name,,}" >> ${GITHUB_OUTPUT}
- name: Generate image
run: docker build -t ${{ steps.image.outputs.image }} .
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
provenance: false
tags: ${{ steps.image.outputs.image }}