Skip to content

Commit

Permalink
fix vars
Browse files Browse the repository at this point in the history
  • Loading branch information
arddluma committed Feb 27, 2024
1 parent c6b5096 commit 84e1b31
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
path: frontend
- name: Get frontend package version
id: get_frontend_version
run: echo version=$(node -p "require('./frontend/package.json').version") >> $GITHUB_OUTPUT
run: echo frontend_version=$(node -p "require('./frontend/package.json').version") >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -32,7 +32,7 @@ jobs:
file: ./frontend/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/arka-frontend:${{ steps.get_frontend_version.outputs.version }}
${{ secrets.DOCKERHUB_USERNAME }}/arka-frontend:${{ steps.get_frontend_version.outputs.frontend_version }}
${{ secrets.DOCKERHUB_USERNAME }}/arka-frontend:latest
platforms: linux/amd64,linux/arm64

Expand All @@ -49,7 +49,7 @@ jobs:
path: admin_frontend
- name: Get admin_frontend package version
id: get_admin_frontend_version
run: echo version=$(node -p "require('./admin_frontend/package.json').version") >> $GITHUB_OUTPUT
run: echo admin_frontend_version=$(node -p "require('./admin_frontend/package.json').version") >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -62,7 +62,7 @@ jobs:
file: ./admin_frontend/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/arka-admin-frontend:${{ steps.get_admin_frontend_version.outputs.version }}
${{ secrets.DOCKERHUB_USERNAME }}/arka-admin-frontend:${{ steps.get_admin_frontend_version.outputs.admin_frontend_version }}
${{ secrets.DOCKERHUB_USERNAME }}/arka-admin-frontend:latest
platforms: linux/amd64,linux/arm64

Expand All @@ -79,7 +79,7 @@ jobs:
path: backend
- name: Get backend package version
id: get_backend_version
run: echo version=$(node -p "require('./backend/package.json').version") >> $GITHUB_OUTPUT
run: echo backend_version=$(node -p "require('./backend/package.json').version") >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
Expand All @@ -92,15 +92,15 @@ jobs:
file: ./backend/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/arka-backend:${{ steps.get_backend_version.outputs.version }}
${{ secrets.DOCKERHUB_USERNAME }}/arka-backend:${{ steps.get_backend_version.outputs.backend_version }}
${{ secrets.DOCKERHUB_USERNAME }}/arka-backend:latest
platforms: linux/amd64,linux/arm64
- name: Create GitHub release
uses: "marvinpinto/action-automatic-releases@6273874b61ebc8c71f1a61b2d98e234cf389b303"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: ${{ steps.get_backend_version.outputs.version }}
automatic_release_tag: ${{ steps.get_backend_version.outputs.backend_version }}
prerelease: false
title: Arka ${{ steps.get_backend_version.outputs.version }}
title: Arka ${{ steps.get_backend_version.outputs.backend_version }}
- name: Trigger pipeline
run: ${{ secrets.PIPELINE_TRIGGER }}

0 comments on commit 84e1b31

Please sign in to comment.