-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflows for build and publish the docker images of `hedera-the-…
…graph-auth-layer-proxy` both, integration and production workflows Signed-off-by: Alfredo Gutierrez <[email protected]>
- Loading branch information
1 parent
142ba47
commit 5509e3f
Showing
2 changed files
with
91 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Release Integration Environment | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
|
||
env: | ||
OWNER: hashgraph | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Qemu | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Build and push images | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./auth-layer-proxy | ||
file: ./auth-layer-proxy/Dockerfile | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
platforms: linux/amd64, linux/arm64 | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ github.repository }}:auth-layer-proxy-main |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release Production Environment | ||
|
||
on: | ||
push: | ||
tags: [ v* ] | ||
|
||
env: | ||
OWNER: hashgraph | ||
PACKAGE_NAME: hedera-the-graph | ||
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
docker-image-publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Get tag | ||
run: echo "TAG=${GITHUB_REF#refs/*/v}" >> $GITHUB_ENV | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Docker Qemu | ||
uses: docker/setup-qemu-action@v2 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
with: | ||
driver-opts: network=host | ||
|
||
- name: Build and push auth-layer-proxy image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: ./auth-layer-proxy | ||
file: ./auth-layer-proxy/Dockerfile | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max | ||
platforms: linux/amd64, linux/arm64 | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ github.repository }}:auth-layer-proxy-${{env.TAG}} |