Skip to content

Commit

Permalink
ci(github): build and push docker image in one step
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Nov 27, 2023
1 parent 761ea4b commit 5c0a169
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ jobs:
run: |
npm run --verbose --foreground-scripts init-docker-builder
- name: 🐳 Build Docker
- name: 🐳 Build & Push Docker
run: |
npm run --verbose --foreground-scripts build-docker
docker buildx build --push --platform linux/amd64,linux/arm64 -t $REGISTRY/$IMAGE_NAME_LC:$TAG --build-arg BACKSTOPJS_VERSION=$PV docker
- name: 🐳 Load Docker
run: |
npm run --verbose --foreground-scripts load-docker
# - name: 🐳 Load Docker
# run: |
# npm run --verbose --foreground-scripts load-docker

- name: 🐳 Push to ghcr.io
run: |
docker tag backstopjs/backstopjs:$PV $REGISTRY/$IMAGE_NAME_LC:$TAG
docker push $REGISTRY/$IMAGE_NAME_LC:$TAG
# - name: 🐳 Push to ghcr.io
# run: |
# docker tag backstopjs/backstopjs:$PV $REGISTRY/$IMAGE_NAME_LC:$TAG
# docker push $REGISTRY/$IMAGE_NAME_LC:$TAG

0 comments on commit 5c0a169

Please sign in to comment.