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

Aylin #5

Merged
merged 2 commits into from Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 14 additions & 8 deletions .github/workflows/cd-oonodz-release.yml
Expand Up @@ -25,10 +25,15 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASS }}

- name: Get Current Tag
id: get_tag
run: echo ::set-output name=tag::$(git describe --abbrev=0 --tags)

- name: Debug vars
run: |
echo "tag: ${{ github.ref_name }}\n"
echo "avalanche version: ${{ vars.AVALANCHE_VERSION }}\n"
echo "tag bis: ${{ steps.get_tag.outputs.tag }}\n"

- name: Create the Dockerfile
run: |
Expand Down Expand Up @@ -73,18 +78,19 @@ jobs:
)

echo "$multiline_text" > Dockerfile-release
cat Dockerfile-release

- name: Build and push release image for the mainnet
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile-release
push: true
tags: "logisticx/ava:${{ vars.AVALANCHE_VERSION }}-${{ github.ref_name }}"
tags: "logisticx/ava:${{ vars.AVALANCHE_VERSION }}-${{ steps.get_tag.outputs.tag }}"
build-args: |
HUBBLENET_RELEASE_TAG="${{github.ref_name}}"
AVALANCHE_VERSION="${{ vars.AVALANCHE_VERSION }}"
VM_ID="o1Fg94YujMqL75Ebrdkos95MTVjZpPpdeAp5ocEsp2X9c2FSz"
HUBBLENET_RELEASE_TAG=${{ steps.get_tag.outputs.tag }}
AVALANCHE_VERSION=${{ vars.AVALANCHE_VERSION }}
VM_ID=o1Fg94YujMqL75Ebrdkos95MTVjZpPpdeAp5ocEsp2X9c2FSz


- name: Build and push release image for the fuji
Expand All @@ -93,8 +99,8 @@ jobs:
context: .
file: ./Dockerfile-release
push: true
tags: "logisticx/ava:${{ vars.AVALANCHE_VERSION }}-fuji-${{ github.ref_name }}"
tags: "logisticx/ava:${{ vars.AVALANCHE_VERSION }}-fuji-${{ steps.get_tag.outputs.tag }}"
build-args: |
HUBBLENET_RELEASE_TAG="${{github.ref_name}}"
AVALANCHE_VERSION="${{ vars.AVALANCHE_VERSION }}"
VM_ID="jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ"
HUBBLENET_RELEASE_TAG=${{ steps.get_tag.outputs.tag }}
AVALANCHE_VERSION=${{ vars.AVALANCHE_VERSION }}
VM_ID=jvrKsTB9MfYGnAXtxbzFYpXKceXr9J8J8ej6uWGrYM5tXswhJ