Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(build): add mainnet and testnet gh actions build #109

Closed
wants to merge 171 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
171 commits
Select commit Hold shift + click to select a range
41ec0e5
feat(contractCallTx): show status
AtanasKrondev Sep 30, 2021
3189eed
ci(build): add mainnet gh actions build
mmpetarpeshev Oct 16, 2021
a621658
ci(build): test the build from the branch
mmpetarpeshev Oct 16, 2021
c141157
ci(build): add testnet and revert build on master only
mmpetarpeshev Oct 16, 2021
f05755c
feat: show api docs and version
AtanasKrondev Oct 14, 2021
3e8d18b
feat(contractCallTx): extended tx info
AtanasKrondev Oct 12, 2021
4212300
ci(build): test the the docker build and push
mmpetarpeshev Oct 18, 2021
16a8c85
ci(build): fix test the the docker build and push
mmpetarpeshev Oct 18, 2021
d282660
ci(build): remove filter from build step
mmpetarpeshev Oct 18, 2021
af859d5
ci(build): add on pr to test the build
mmpetarpeshev Oct 18, 2021
b474a2d
ci(build): make the pipeline for master only
mmpetarpeshev Oct 18, 2021
388b6ee
ci(build): fix tesnet image tag
mmpetarpeshev Oct 18, 2021
ae72672
Merge pull request #98 from aeternity/feature/tx-status
AtanasKrondev Oct 20, 2021
0a86e68
Merge pull request #105 from aeternity/feature/show-api-ref
AtanasKrondev Oct 20, 2021
a54c509
feat(contractCreateTx): show extended information
AtanasKrondev Oct 26, 2021
f7dd8d9
Merge pull request #110 from aeternity/feature/contract-create-tx-info
AtanasKrondev Oct 27, 2021
0c18fd8
feat: handle filters through queries
AtanasKrondev Oct 29, 2021
2e0027d
feat: adjust AE prefixed amount
AtanasKrondev Oct 29, 2021
f85e234
Merge pull request #115 from aeternity/bugfix/handle-queries
AtanasKrondev Nov 1, 2021
2e83204
Merge pull request #116 from aeternity/feature/adjust-ae-prefix
AtanasKrondev Nov 1, 2021
4ffa817
feat(account): show tokens balances
AtanasKrondev Nov 1, 2021
61c8277
feat(router): redirect 'account/transactions/_id' to 'account/_id'
AtanasKrondev Nov 1, 2021
07fd366
ci(circleci): remove circleci config
mmpetarpeshev Nov 2, 2021
fb1a15d
Merge pull request #118 from aeternity/ci/remove-circleci
mmpetarpeshev Nov 2, 2021
d4f364b
Merge pull request #117 from aeternity/feature/display-token-balances
AtanasKrondev Nov 8, 2021
cd80810
feat: tokens dedicated page
AtanasKrondev Nov 10, 2021
758ac31
feat(tokenPage): display tokens balances per account
AtanasKrondev Nov 11, 2021
b950e46
feat(tokenPage): display token transfers
AtanasKrondev Nov 12, 2021
41799ec
Merge pull request #120 from aeternity/feature/tokens-page
AtanasKrondev Nov 17, 2021
205b824
style(tokenPage): transfers table
AtanasKrondev Nov 17, 2021
e0af085
feat(accountPage): show/hide 0 balances
AtanasKrondev Nov 17, 2021
94a39eb
Merge pull request #124 from aeternity/feature/tokens-page-style
AtanasKrondev Nov 18, 2021
859a52d
fix(accountPage): display if the account is not found
AtanasKrondev Nov 18, 2021
878ab47
Merge pull request #127 from aeternity/bugfix/account-display
AtanasKrondev Nov 26, 2021
09629f3
chore: release 0.4.0
github-actions[bot] Nov 26, 2021
9a30415
Merge pull request #104 from aeternity/release-v0.4.0
marc0olo Nov 26, 2021
71452c5
fix: use next pagination across project
thepiwo Dec 1, 2021
38aa55f
fix: transactions page load more on all
AtanasKrondev Dec 2, 2021
4be7fbd
feat: tokens page search query
AtanasKrondev Dec 3, 2021
a14d84f
Merge pull request #129 from aeternity/feature/tokens-navigation
marc0olo Dec 4, 2021
de5b998
chore: array instead of object on transactions page
AtanasKrondev Dec 2, 2021
ae9dfa9
Merge pull request #128 from aeternity/fix/adjust-use-next-pagination
marc0olo Dec 8, 2021
b90f73f
feat(transactions): display internal function calls
AtanasKrondev Dec 6, 2021
dd0b793
Merge pull request #131 from aeternity/feature/function-calls
marc0olo Dec 8, 2021
6528af8
feat: display internal transfers
AtanasKrondev Dec 12, 2021
88b4531
Merge pull request #133 from aeternity/feature/internal-transfers
marc0olo Dec 13, 2021
c471cf4
fix: missing args, method (#112)
ifaouibadi Jan 12, 2022
7504ed5
fix: missing args, methdos in transactions view (#112)
ifaouibadi Jan 14, 2022
3a9cbe4
Merge pull request #140 from aeternity/feature/contract-create-tx-mis…
marc0olo Jan 14, 2022
680a1f7
fix: contract tx error display #112
ifaouibadi Jan 17, 2022
8df4c67
feat(token): date format (#134)
ifaouibadi Jan 17, 2022
0d0011b
feat(transactions): page loading speed (#134)
ifaouibadi Jan 17, 2022
d76b8aa
feat: the ability to sort names ASC/Desc (#61)
ifaouibadi Jan 17, 2022
0b3c3de
fix: create contract style
ifaouibadi Jan 17, 2022
9bfb906
feat: names search by name #61
ifaouibadi Jan 17, 2022
ce0b26d
feat: updated sort, filter, search names #61
ifaouibadi Jan 18, 2022
7d21fde
feat(token): default sort balances(#134)
ifaouibadi Jan 17, 2022
9cce742
feat(account): change allowance display #138
ifaouibadi Jan 18, 2022
2dfde42
Merge pull request #144 from aeternity/feature/tokens-page-improvements
marc0olo Jan 18, 2022
b02ac26
feat: names added expires at human formatted date #61
ifaouibadi Jan 19, 2022
fdddbd1
fix: create/change allowance display #138
ifaouibadi Jan 19, 2022
24c5f0b
fix: merge conflict
ifaouibadi Jan 19, 2022
76690ef
Merge branch 'master' into feature/contract-create-tx-missing-arg
ifaouibadi Jan 19, 2022
dc884a1
fix: tx function #112
ifaouibadi Jan 19, 2022
9726e70
Merge pull request #143 from aeternity/feature/contract-create-tx-mis…
marc0olo Jan 20, 2022
dde5db4
fix: names sort by expiration height #61
ifaouibadi Jan 20, 2022
690e4ae
Merge pull request #145 from aeternity/feature/names-search-sort
marc0olo Jan 20, 2022
dd95d17
Merge branch 'master' of github.com:aeternity/mdw-frontend into featu…
ifaouibadi Jan 21, 2022
22d73ac
fix: token info loader #138
ifaouibadi Jan 21, 2022
8c7dba3
fix: change/create allowance affected account content #138
ifaouibadi Jan 21, 2022
983f043
fix: token amount #138
ifaouibadi Jan 21, 2022
ee6402b
feat: added generic $ws client #100
ifaouibadi Jan 21, 2022
22a8557
feat: updated transaction status lifecycle #100
ifaouibadi Jan 21, 2022
e111dc7
fix: transaction block confirmation #100
ifaouibadi Jan 21, 2022
8a0a4c3
fix: nuxt config
ifaouibadi Jan 24, 2022
7f94f8c
fix: store utils
ifaouibadi Jan 24, 2022
5eef237
fix: fetch node import
ifaouibadi Jan 24, 2022
dd54f90
feat: show loading if transaction not synced for gas price & total co…
ifaouibadi Jan 24, 2022
77a6ef5
fix: load related transaction token info #138
ifaouibadi Jan 24, 2022
cf0c46a
Merge pull request #146 from aeternity/feature/improve-token-related-…
marc0olo Jan 24, 2022
2997bab
fix: transaction status style #100
ifaouibadi Jan 24, 2022
99cbc23
fix: merge conflicts #100
ifaouibadi Jan 24, 2022
8ac9369
fix: transaction status alignment #100
ifaouibadi Jan 24, 2022
17eaea5
Merge pull request #151 from aeternity/feat/pending-transactions-state
marc0olo Jan 24, 2022
8fca84c
feat: show dex swap info #149, add_liquidity, remove_liquidity info #148
ifaouibadi Jan 26, 2022
c0f75fb
fix: swap_exact_ae_for_tokens, swap_exact_tokens_for_ae #149
ifaouibadi Jan 26, 2022
cb0e9f8
fix: dex swap transaction show tokens info #149
ifaouibadi Jan 27, 2022
0fa7506
docs: updated supported env variables #152
ifaouibadi Jan 27, 2022
f669f16
Merge pull request #153 from aeternity/fix/readme
marc0olo Jan 27, 2022
21ae96d
fix: show token info if transaction reverted #149
ifaouibadi Jan 27, 2022
dcbe210
fix: hide sender, recipient when transaction is swap #149
ifaouibadi Jan 27, 2022
18336a6
fix: token link display #149
ifaouibadi Jan 27, 2022
81fc32a
fix: hide sender, recipient when transaction is allowance #149
ifaouibadi Jan 27, 2022
74b0b11
feat: return value encoder #147
ifaouibadi Jan 27, 2022
8fb7979
Merge pull request #154 from aeternity/feat/contract-create-return-va…
marc0olo Jan 27, 2022
fe143c7
fix: remove ae prefix for add_liquidity
ifaouibadi Jan 28, 2022
1ab718c
feat: switch between networks #157
ifaouibadi Jan 31, 2022
ba1cef2
fix: token view load more filter data #158
ifaouibadi Jan 31, 2022
35a4bbd
feat: display all transfers #159
ifaouibadi Jan 31, 2022
9c83bc2
fix: network switcher dropdown style #157
ifaouibadi Jan 31, 2022
76903ec
Merge pull request #160 from aeternity/feat/switch-between-networks
marc0olo Jan 31, 2022
d016a0a
Merge pull request #161 from aeternity/fix/token-view
marc0olo Jan 31, 2022
d70edd2
fix: updated add liquidity values #148
ifaouibadi Feb 1, 2022
7c083b6
fix: transaction token info #149
ifaouibadi Feb 3, 2022
435a7c7
Merge branch 'master' of github.com:aeternity/mdw-frontend into feat/…
ifaouibadi Feb 3, 2022
33126d3
fix: token info create|change_allowance #149
ifaouibadi Feb 7, 2022
96874f1
fix: missing token info title
ifaouibadi Feb 7, 2022
3a91f52
fix: token titles, info
ifaouibadi Feb 7, 2022
c161bc9
Merge pull request #156 from aeternity/feat/show-dex-contract
marc0olo Feb 7, 2022
0ac9ecc
chore: release 0.5.0
github-actions[bot] Feb 7, 2022
0c238d6
Merge pull request #130 from aeternity/release-v0.5.0
marc0olo Feb 7, 2022
c07f847
fix: fetch block height from node API
ifaouibadi Feb 10, 2022
993e4cd
fix: transaction loading state
ifaouibadi Feb 10, 2022
aec56ae
fix: aex transaction when token decimals not defined
ifaouibadi Feb 10, 2022
2573aac
Merge pull request #163 from aeternity/feat/block-confirmation
marc0olo Feb 11, 2022
42a2d53
feat: account filter transactions based on AEX-9 and DEX #155
ifaouibadi Feb 11, 2022
f44070d
Merge pull request #165 from aeternity/feat/filter-transactions
marc0olo Feb 12, 2022
81c85c6
fix(account): when aex9 balance cannot be loaded #168
ifaouibadi Feb 15, 2022
9ddab7d
fix(account): show token failed message on aex9 balances load error #168
ifaouibadi Feb 17, 2022
af4ece8
Merge pull request #169 from aeternity/fix/account-error-handling
marc0olo Feb 17, 2022
81eeeeb
chore: release 0.6.0
github-actions[bot] Feb 17, 2022
42a5071
Merge pull request #167 from aeternity/release-v0.6.0
marc0olo Feb 17, 2022
26ca4bb
ci(build): prd and stg initial pipelines
mmpetarpeshev Feb 25, 2022
6b7a851
fix: when tokens could not be loaded should display transactions
ifaouibadi Feb 28, 2022
c581cd4
Merge pull request #170 from aeternity/feature/fix-when-token-not-loaded
marc0olo Feb 28, 2022
3e39f7f
chore: release 0.6.1
github-actions[bot] Feb 28, 2022
b0f21a4
Merge pull request #171 from aeternity/release-v0.6.1
marc0olo Mar 7, 2022
817a08b
fix(tx-details): only show tx arguments on contract call #172
ifaouibadi Mar 22, 2022
5639db5
Merge pull request #173 from aeternity/fix/tx-detail-view
marc0olo Mar 22, 2022
83e5e60
feat: ga contract support #135
ifaouibadi Apr 15, 2022
587e117
Merge pull request #175 from aeternity/feature/ga-contract-support
marc0olo Apr 18, 2022
c1cd467
chore: release 0.7.0
github-actions[bot] Apr 18, 2022
dc83fa8
Merge pull request #176 from aeternity/release-v0.7.0
marc0olo Apr 18, 2022
6ecf761
ci(build): fix the strange character
mmpetarpeshev Apr 28, 2022
87189a5
ci(build): update release please version
mmpetarpeshev Jun 3, 2022
630f926
ci(build): remove templates for now
mmpetarpeshev Jun 3, 2022
193d4dc
fix: swap tx tokens display #177
ifaouibadi Jun 11, 2022
338f46a
Merge pull request #178 from aeternity/fix/tx-swap-tokens-display
ifaouibadi Jun 14, 2022
82520f9
fix: show no error if no tokens
thepiwo Sep 14, 2022
7eb8971
chore: release 0.7.1
github-actions[bot] Sep 14, 2022
be4bd04
Fix docker building
venimus Oct 17, 2022
5240082
fix wrong make default
venimus Nov 18, 2022
e25855c
ci(build): add mainnet gh actions build
mmpetarpeshev Oct 16, 2021
a96562a
ci(build): test the build from the branch
mmpetarpeshev Oct 16, 2021
920c2ee
ci(build): add testnet and revert build on master only
mmpetarpeshev Oct 16, 2021
62b84f0
ci(build): test the the docker build and push
mmpetarpeshev Oct 18, 2021
714e992
ci(build): fix test the the docker build and push
mmpetarpeshev Oct 18, 2021
1c386bb
ci(build): remove filter from build step
mmpetarpeshev Oct 18, 2021
07105e0
ci(build): add on pr to test the build
mmpetarpeshev Oct 18, 2021
d75c518
ci(build): make the pipeline for master only
mmpetarpeshev Oct 18, 2021
3cf1eaf
ci(build): fix tesnet image tag
mmpetarpeshev Oct 18, 2021
b012e7a
ci(build): prd and stg initial pipelines
mmpetarpeshev Feb 25, 2022
39a3d88
ci(build): fix the strange character
mmpetarpeshev Apr 28, 2022
3288ebe
ci(build): update release please version
mmpetarpeshev Jun 3, 2022
d9eea53
ci(build): remove templates for now
mmpetarpeshev Jun 3, 2022
73b7fd4
variables changes in mainnet prod pipeline
mmpetarpeshev Nov 22, 2022
91c9b8c
add variabels for mainnet pipeline
mmpetarpeshev Nov 22, 2022
edce874
resolve conflicts mainnet yaml
mmpetarpeshev Nov 22, 2022
dd1ec98
ci(build): test the build from the branch
mmpetarpeshev Oct 16, 2021
290c99d
ci(build): rebase with master
mmpetarpeshev Oct 16, 2021
b98009f
ci(build): test the the docker build and push
mmpetarpeshev Oct 18, 2021
dfe21ac
ci(build): fix test the the docker build and push
mmpetarpeshev Oct 18, 2021
d909d58
ci(build): remove filter from build step
mmpetarpeshev Oct 18, 2021
6d737c3
ci(build): add on pr to test the build
mmpetarpeshev Oct 18, 2021
761dbcc
ci(build): make the pipeline for master only
mmpetarpeshev Oct 18, 2021
a0816ad
ci(build): fix tesnet image tag
mmpetarpeshev Oct 18, 2021
7af4887
ci(build): rebase prd and stg initial pipelines
mmpetarpeshev Feb 25, 2022
99e9153
ci(build): fix the strange character
mmpetarpeshev Apr 28, 2022
870829e
ci(build): update release please version
mmpetarpeshev Jun 3, 2022
a05ed48
ci(build): remove templates for now
mmpetarpeshev Jun 3, 2022
05253a7
Merge branch 'feature/gh-actions-build' of github.com:aeternity/mdw-f…
mmpetarpeshev Nov 22, 2022
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
94 changes: 0 additions & 94 deletions .circleci/config.yml

This file was deleted.

1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ CHANGELOG.md
.gitignore
deploy.esc
README.md
.git
38 changes: 38 additions & 0 deletions .github/workflows/mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Mdw Frontend Mainnet
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather call this Explorer (yet not really important)


on:
push:
branches:
- master
tags:
- 'v*'

jobs:
main:
runs-on: ubuntu-latest

name: Build Docker
steps:

- uses: actions/checkout@v2

- name: Log in to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_PASS }}

- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: nginx.Dockerfile
build-args: |
NUXT_APP_NODE_URL: "https://mainnet.aeternity.io/mdw"
Copy link
Member

@venimus venimus Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

newer versions have some additional ENV vars

    nodeURL: process.env.NUXT_APP_NODE_URL || 'https://mainnet.aeternity.io/v3',
    middlewareURL: process.env.NUXT_APP_MDW_URL || 'https://mainnet.aeternity.io/mdw',
    middlewareWS: process.env.NUXT_APP_NODE_WS || 'wss://mainnet.aeternity.io/mdw/websocket',
    networkName: process.env.NUXT_APP_NETWORK_NAME || 'MAINNET',
    otherDeployments: process.env.NUXT_APP_OTHER_DEPLOYMENTS || 'TESTNET@https://explorer.testnet.aeternity.io',
    enableFaucet: process.env.NUXT_APP_ENABLE_FAUCET || false,
    faucetAPI: process.env.NUXT_APP_FAUCET_API || 'https://testnet.faucet.aepps.com/account',
    APIDocs: process.env.NUXT_APP_API_DOCS || 'https://github.com/aeternity/ae_mdw#http-endpoints'

otherDeployments point to an url for the explorer of the other network (on mainnet it points to tesnet and viceversa)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okey , thanks , we can sync on that.

NUXT_APP_NODE_WS: "wss://mainnet.aeternity.io/mdw/websocket"
NUXT_APP_NETWORK_NAME: "MAIN NET"
NUXT_APP_ENABLE_FAUCET: "false"
NUXT_APP_FAUCET_API: "https://testnet.faucet.aepps.com/account"
push: ${{ github.event_name != 'pull_request' }}
tags: aeternity/mdw-frontend:mainnet
Copy link
Member

@venimus venimus Apr 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO this should be aeternity/explorer-mainnet:latest or something like that

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed it with Dincho I think , we have to sync on that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We keep the old repo and tags for now:
mdw-frontend

120 changes: 120 additions & 0 deletions .github/workflows/prod-docker-mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: Production Mainnet Pipeline

on:
push:
branches:
- master
release:
types: [created]

env:
ENV: "prd"
APP: "mdw-frontend-mainnet"

jobs:
main:
runs-on: ubuntu-latest
name: Mainnet Production Pipeline
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100

- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: ""
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"ci","section":"CI / CD","hidden":false},{"type":"test","section":"Testing","hidden":false},{"type":"refactor","section":"Refactorings","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'

- name: Set up Docker Buildx
id: buildx
# Use the action from the master, as we've seen some inconsistencies with @v1
# Issue: https://github.com/docker/build-push-action/issues/286
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' ||
startsWith(github.ref, 'refs/tags/v')
id: meta
uses: docker/metadata-action@v3
with:
images: aeternity/mdw-frontend:mainnet # has to be changed
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'main') }}
type=raw,value=${{ steps.release.outputs.tag_name }},enable=${{ endsWith(GitHub.ref, 'main') }}
type=ref,event=tag
type=ref,event=pr

- name: Build and push docker image
if: |
github.event_name == 'push' ||
startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v2
with:
context: .
file: nginx.Dockerfile
build-args: |
NUXT_APP_NODE_URL: https://mainnet.aeternity.io/v3
NUXT_APP_NODE_WS: wss://mainnet.aeternity.io/mdw/websocket
NUXT_APP_MDW_URL: https://mainnet.aeternity.io/mdw
NUXT_APP_OTHER_DEPLOYMENTS: TESTNET@https://explorer.testnet.aeternity.io
NUXT_APP_NETWORK_NAME: MAIN NET
NUXT_APP_ENABLE_FAUCET: false
NUXT_APP_FAUCET_API: https://testnet.faucet.aepps.com/account
push: true
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 == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

- uses: actions/checkout@v2
with:
repository: aeternity/gitops-apps.git
ref: prd
persist-credentials: false
fetch-depth: 0

- name: Production Deploy
if: ${{ steps.release.outputs.release_created }}
uses: aeternity/ae-github-actions/argocd-deploy@v4
with:
url-prefix: ${{ steps.release.outputs.tag_name }}
env: ${{ env.ENV }}
app: ${{ env.APP }}

- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: aeternity/gitops-apps
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: prd
117 changes: 117 additions & 0 deletions .github/workflows/prod-docker-testnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
name: Production Testnet Pipeline

on:
push:
branches:
- master
release:
types: [created]

env:
ENV: "prd"
APP: "mdw-frontend-testnet"

jobs:
main:
runs-on: ubuntu-latest
name: Testnet Production Pipeline
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100

- uses: GoogleCloudPlatform/release-please-action@v3
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: node
package-name: ""
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"ci","section":"CI / CD","hidden":false},{"type":"test","section":"Testing","hidden":false},{"type":"refactor","section":"Refactorings","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'

- name: Set up Docker Buildx
id: buildx
# Use the action from the master, as we've seen some inconsistencies with @v1
# Issue: https://github.com/docker/build-push-action/issues/286
uses: docker/setup-buildx-action@master
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' ||
startsWith(github.ref, 'refs/tags/v')
id: meta
uses: docker/metadata-action@v3
with:
images: aeternity/mdw-frontend:testnet # has to be changed
tags: |
type=raw,value=latest,enable=${{ endsWith(GitHub.ref, 'main') }}
type=raw,value=${{ steps.release.outputs.tag_name }},enable=${{ endsWith(GitHub.ref, 'main') }}
type=ref,event=tag
type=ref,event=pr

- name: Build and push docker image
if: |
github.event_name == 'push' ||
startsWith(github.ref, 'refs/tags/v')
uses: docker/build-push-action@v2
with:
context: .
file: nginx.Dockerfile
build-args: |
NUXT_APP_NODE_URL: "https://testnet.aeternity.io/mdw"
NUXT_APP_NODE_WS: "wss://testnet.aeternity.io/mdw/websocket"
NUXT_APP_NETWORK_NAME: "TEST NET"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add version here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No idea from my side , we should verify that

NUXT_APP_ENABLE_FAUCET: "false"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

faucet should be "true" for testnet

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okey ,thanks will change it.

NUXT_APP_FAUCET_API: "https://testnet.faucet.aepps.com/account"
push: true
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 == 'pull_request' && github.event.action == 'opened' || github.event.action == 'synchronize'
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache

- uses: actions/checkout@v2
with:
repository: aeternity/gitops-apps.git
ref: prd
persist-credentials: false
fetch-depth: 0

- name: Production Deploy
if: ${{ steps.release.outputs.release_created }}
uses: aeternity/ae-github-actions/argocd-deploy@v4
with:
url-prefix: ${{ steps.release.outputs.tag_name }}
env: ${{ env.ENV }}
app: ${{ env.APP }}

- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: aeternity/gitops-apps
github_token: ${{ secrets.BOT_GITHUB_TOKEN }}
branch: prd
Loading
Loading