Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions .github/workflows/actions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,31 +4,37 @@ on:

env:
CI_ACCESS_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }}
GITHUB_REPOSITORY: ghcr.io/bridgeless-project/bridgeless-scan

jobs:
converge-github:
name: Skaffold Build To Github
runs-on: ubuntu-22.04
name: Build To Github
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | buildah login ghcr.io -u $ --password-stdin

- name: Cache layers
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/.skaffold/cache"
key: skaffold-${{ hashFiles('**/cache') }}
restore-keys: |
skaffold-
- name: Build and Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.sha }}
CACHE_REPO: ${{ env.GITHUB_REPOSITORY }}/cache
run: |
buildah build \
-f Dockerfile \
--layers \
--cache-from $CACHE_REPO \
--cache-to $CACHE_REPO \
-t $IMAGE \
--build-arg CI_ACCESS_TOKEN=$CI_ACCESS_TOKEN \
.

- name: Run Skaffold pipeline as command
uses: hiberbee/github-action-skaffold@latest
id: build
with:
command: build --tag ${{ github.sha }}
repository: ghcr.io/${{ github.repository_owner }}
- name: Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.sha }}
run: buildah push $IMAGE
32 changes: 23 additions & 9 deletions .github/workflows/actions_mainnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,41 @@ on:

env:
CI_ACCESS_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }}
GITHUB_REPOSITORY: ghcr.io/bridgeless-project/bridgeless-scan

jobs:
converge-github:
name: Skaffold Build To Github
runs-on: ubuntu-22.04
name: Build To Github
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | buildah login ghcr.io -u $ --password-stdin

- name: Create .env file
run: |
echo "${{ secrets.ENV_MAINNET }}" | base64 -d > .env

- name: Run Skaffold pipeline as command
uses: hiberbee/github-action-skaffold@latest
id: build
with:
command: build --tag ${{ github.sha }}
repository: ghcr.io/${{ github.repository_owner }}
- name: Build and Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.sha }}
CACHE_REPO: ${{ env.GITHUB_REPOSITORY }}/cache
run: |
buildah build \
-f Dockerfile \
--layers \
--cache-from $CACHE_REPO \
--cache-to $CACHE_REPO \
-t $IMAGE \
--build-arg CI_ACCESS_TOKEN=$CI_ACCESS_TOKEN \
.

- name: Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.sha }}
run: buildah push $IMAGE
32 changes: 23 additions & 9 deletions .github/workflows/actions_testnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,41 @@ on:

env:
CI_ACCESS_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }}
GITHUB_REPOSITORY: ghcr.io/bridgeless-project/bridgeless-scan

jobs:
converge-github:
name: Skaffold Build To Github
runs-on: ubuntu-22.04
name: Build To Github
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | buildah login ghcr.io -u $ --password-stdin

- name: Create .env file
run: |
echo "${{ secrets.ENV_TESTNET }}" | base64 -d > .env

- name: Run Skaffold pipeline as command
uses: hiberbee/github-action-skaffold@latest
id: build
with:
command: build --tag ${{ github.sha }}
repository: ghcr.io/${{ github.repository_owner }}
- name: Build and Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.sha }}
CACHE_REPO: ${{ env.GITHUB_REPOSITORY }}/cache
run: |
buildah build \
-f Dockerfile \
--layers \
--cache-from $CACHE_REPO \
--cache-to $CACHE_REPO \
-t $IMAGE \
--build-arg CI_ACCESS_TOKEN=$CI_ACCESS_TOKEN \
.

- name: Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.sha }}
run: buildah push $IMAGE
36 changes: 21 additions & 15 deletions .github/workflows/tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,37 @@ on:

env:
CI_ACCESS_TOKEN: ${{ secrets.CI_ACCESS_TOKEN }}
GITHUB_REPOSITORY: ghcr.io/bridgeless-project/bridgeless-scan

jobs:
converge-github:
name: Skaffold Build To Github
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
# This is where you will update the personal access token to GITHUB_TOKEN
run: echo "${{ secrets.GITHUB_TOKEN }}" | buildah login ghcr.io -u $ --password-stdin

- name: Cache layers
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/.skaffold/cache"
key: skaffold-${{ hashFiles('**/cache') }}
restore-keys: |
skaffold-
- name: Build and Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.ref_name }}
CACHE_REPO: ${{ env.GITHUB_REPOSITORY }}/cache
run: |
buildah build \
-f Dockerfile \
--layers \
--cache-from $CACHE_REPO \
--cache-to $CACHE_REPO \
-t $IMAGE \
--build-arg CI_ACCESS_TOKEN=$CI_ACCESS_TOKEN \
.

- name: Run Skaffold pipeline as command
uses: hiberbee/github-action-skaffold@latest
id: build
with:
command: build --tag ${{ github.ref_name }}
repository: ghcr.io/${{ github.repository_owner }}
- name: Push Image
env:
IMAGE: ${{ env.GITHUB_REPOSITORY }}:${{ github.ref_name }}
run: buildah push $IMAGE