Skip to content

Commit

Permalink
Merge pull request #106 from Luligu/dev
Browse files Browse the repository at this point in the history
Docker build
  • Loading branch information
Luligu authored Aug 20, 2024
2 parents 8e7e1cd + 87237ee commit 502cb95
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/docker-buildx-dev.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build dev and Push Docker image dev and dev_alpine to Docker Hub with buildx
name: Build dev and Push Docker image dev, dev_alpine and dev_shelly to Docker Hub with buildx

on:
push:
Expand All @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: '20.x'

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -33,6 +33,16 @@ jobs:
with:
version: latest

- name: Extract version from package.json
id: extract_version
run: |
VERSION=$(jq -r '.version' package.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Echo main version ${{ env.VERSION }}
run: |
echo "Extracted version is: $VERSION ${{ env.VERSION }}"
- name: Run Docker Buildx on dev_shelly
run: |
docker buildx build \
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/docker-buildx-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: '20.x'

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -33,6 +33,16 @@ jobs:
with:
version: latest

- name: Extract version from package.json
id: extract_version
run: |
VERSION=$(jq -r '.version' package.json)
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Echo main version ${{ env.VERSION }}
run: |
echo "Extracted version is: $VERSION ${{ env.VERSION }}"
- name: Run Docker Buildx on latest
run: |
docker buildx build \
Expand Down

0 comments on commit 502cb95

Please sign in to comment.