Skip to content

Commit

Permalink
Set up contexts
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
  • Loading branch information
awharn committed Aug 2, 2023
1 parent 6c8fe77 commit 39c434e
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/cli-basic-with-nvm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
timeout-minutes: 20

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -38,14 +41,14 @@ jobs:

- name: Build & Push
id: build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: cli/basic-with-nvm
push: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'push' && github.ref_name == 'main') }}
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/zowe/zowe-sample-dockerfiles-cli-basic-with-npm:latest
zowe-docker-snapshot.jfrog.io/ompzowe/zowe-sample-dockerfiles-cli-basic-with-npm:latest
context: cli/basic-with-npm/.
- name: Image Digest
run: echo ${{ steps.build.outputs.digest }}
7 changes: 5 additions & 2 deletions .github/workflows/cli-basic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
timeout-minutes: 20

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -38,14 +41,14 @@ jobs:

- name: Build & Push
id: build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: cli/basic
push: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'push' && github.ref_name == 'main') }}
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/zowe/zowe-sample-dockerfiles-cli-basic:latest
zowe-docker-snapshot.jfrog.io/ompzowe/zowe-sample-dockerfiles-cli-basic:latest
context: cli/basic/.
- name: Image Digest
run: echo ${{ steps.build.outputs.digest }}
7 changes: 5 additions & 2 deletions .github/workflows/cli-jenkins-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
timeout-minutes: 20

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -38,14 +41,14 @@ jobs:

- name: Build & Push
id: build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: cli/jenkins-agent
push: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'push' && github.ref_name == 'main') }}
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/zowe/zowe-sample-dockerfiles-cli-jenkins-agent:latest
zowe-docker-snapshot.jfrog.io/ompzowe/zowe-sample-dockerfiles-cli-jenkins-agent:latest
context: cli/jenkins-agent/.
- name: Image Digest
run: echo ${{ steps.build.outputs.digest }}
7 changes: 5 additions & 2 deletions .github/workflows/cli-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ jobs:
timeout-minutes: 20

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

Expand All @@ -38,14 +41,14 @@ jobs:

- name: Build & Push
id: build
uses: docker/build-push-action@v2
uses: docker/build-push-action@v4
with:
context: cli/minimal
push: ${{ github.event_name == 'workflow_dispatch' || github.event_name == 'schedule' || (github.event_name == 'push' && github.ref_name == 'main') }}
platforms: linux/amd64,linux/arm64
tags: |
ghcr.io/zowe/zowe-sample-dockerfiles-cli-minimal:latest
zowe-docker-snapshot.jfrog.io/ompzowe/zowe-sample-dockerfiles-cli-minimal:latest
context: cli/minimal/.
- name: Image Digest
run: echo ${{ steps.build.outputs.digest }}

0 comments on commit 39c434e

Please sign in to comment.