-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
231f433
commit fcacf61
Showing
1 changed file
with
21 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,58 +11,48 @@ jobs: | |
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
node-version: [20.x] | ||
|
||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v3 | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- | ||
name: Login to DockerHub | ||
uses: docker/login-action@v2 | ||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
- | ||
name: Install npm dependencies | ||
- name: Install npm dependencies | ||
run: npm ci | ||
- | ||
name: cds build | ||
- name: cds build | ||
run: npm run build | ||
- | ||
name: Build and push | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v3 | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
push: true | ||
# Can't be combined with push | ||
# load: true | ||
# platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
# Can't be combined with push | ||
# load: true | ||
# platforms: linux/amd64,linux/arm/v7,linux/arm64 | ||
tags: gregorwolf/cap-azure-ad-b2c:latest | ||
- | ||
name: Image digest | ||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
|
||
# - | ||
# - | ||
# name: Check Container | ||
# uses: Azure/container-scan@v0 | ||
# with: | ||
# image-name: gregorwolf/cap-azure-ad-b2c:latest | ||
|
||
## Not possible until https://github.com/docker/roadmap/issues/115 is solved | ||
# - | ||
# - | ||
# name: Publish Readme | ||
# id: publish_readme | ||
# uses: meeDamian/[email protected] | ||
|