Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

fix lint

fix lint #75

Workflow file for this run

name: ci
on:
push:
branches:
- "**"
tags:
- "*"
env:
EARTHLY_REMOTE_CACHE: cache.registry/${{ github.repository }}/${{ github.job }}/${{ github.ref_name }}:cache
EARTHLY_CACHE_FROM: cache.registry/${{ github.repository }}/${{ github.job }}/develop:cache
EARTHLY_PUSH: "true"
EARTHLY_STRICT: "true"
jobs:
############################ tests ############################
test:
runs-on: [self-hosted]
steps:
- uses: eniblock/build/actions/[email protected]
id: setup
with:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run api tests
run: |
earthly --allow-privileged +test
lint-helm:
runs-on: [self-hosted]
steps:
- uses: eniblock/build/actions/[email protected]
id: setup
with:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
- run: |
earthly ./helm+lint
############################ docker ############################
docker:
runs-on: [self-hosted]
needs: [test, lint-helm]
steps:
- uses: eniblock/build/actions/[email protected]
id: setup
with:
helmdir: helm/tezos-api-gateway
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the asset image
run: |
earthly --push +docker --tag=${{ steps.setup.outputs.tag }}
############################ helm ############################
helm-publish:
runs-on: [self-hosted]
needs: [docker]
steps:
- uses: eniblock/build/actions/[email protected]
id: setup
with:
helmdir: helm/tezos-api-gateway
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build/Publish the helm charts
run: |
earthly \
--secret registry_username=notused \
--secret registry_password=${{ github.token }} \
./helm+publish \
--tag=${{ steps.setup.outputs.tag }}
- name: Generate job summary
run: |
cat <<"EOF" >> $GITHUB_STEP_SUMMARY
## Helm package
Helm package was generated with tag `${{ steps.setup.outputs.tag }}`
Use it directly with
~~~bash
helm install tag oci://ghcr.io/eniblock/tezos-api-gateway --version ${{ steps.setup.outputs.tag }}
~~~
or as a helm dependency in your `Chart.yaml`:
~~~yaml
dependencies:
- name: tezos-api-gateway
version: "${{ steps.setup.outputs.tag }}"
repository: "oci://ghcr.io/eniblock"
~~~
EOF