feat: contract events arguments mismatch (#686) #252
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
name: Develop pipelines - testnet | |
on: | |
push: | |
branches: | |
- develop | |
env: | |
ENV: "dev" | |
APP: "aescan-testnet" | |
concurrency: aescan_develop_environment-${{ github.ref }} | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
environment: develop | |
name: Develop Pipeline Aescan Frontend Testnet | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get commit sha on PR Sync | |
if: github.event_name == 'push' | |
id: git-sha | |
shell: bash | |
run: | | |
echo GIT_SHA=$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@master | |
# Only worked for us with this option on | |
with: | |
install: true | |
- name: Cache Docker layers | |
uses: actions/cache@v2 | |
with: | |
path: /tmp/.buildx-cache | |
# Key is named differently to avoid collision | |
key: ${{ runner.os }}-${{ env.ENV }}-buildx-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.ENV }}-buildx | |
- name: Log in to dockerhub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USER }} | |
password: ${{ secrets.DOCKERHUB_PASS }} | |
- name: Extract metadata for docker | |
if: github.event_name == 'push' | |
id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: aeternity/aescan | |
tags: | | |
type=raw,value=develop,enable=${{ endsWith(GitHub.ref, 'develop') }} | |
- name: Create dotenv | |
run: | | |
echo APP_VERSION=$(git describe --tags)-dev >> .env | |
- name: Build and push docker image | |
if: github.event_name == 'push' | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
build-args: BUILD_MODE=development | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
cache-from: type=local,src=/tmp/.buildx-cache | |
# Note the mode=max here | |
# More: https://github.com/moby/buildkit#--export-cache-options | |
# And: https://github.com/docker/buildx#--cache-tonametypetypekeyvalue | |
cache-to: type=local,mode=max,dest=/tmp/.buildx-cache-new | |
- name: Move cache | |
if: github.event_name == 'push' | |
run: | | |
rm -rf /tmp/.buildx-cache | |
mv /tmp/.buildx-cache-new /tmp/.buildx-cache | |
- uses: actions/checkout@v2 | |
with: | |
repository: aeternity/gitops-apps-aelabs.git | |
token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
ref: dev | |
persist-credentials: false | |
fetch-depth: 0 | |
- name: Latest Develop Branch Deploy on Push | |
if: github.event_name == 'push' | |
uses: aeternity/ae-github-actions/argocd-pr-sync@v5 | |
with: | |
git-sha: ${{ steps.git-sha.outputs.GIT_SHA }} | |
url-prefix: develop | |
env: ${{ env.ENV }} | |
app: ${{ env.APP }} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
repository: aeternity/gitops-apps-aelabs | |
github_token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
branch: dev |