Added VERSION
Some checks failed
Sonar / SonarQube (push) Successful in 50s
Sonar / Docker stuff (push) Failing after 5s

This commit is contained in:
Liviu Burcusel 2025-12-10 16:52:45 +01:00
parent 0faaef912c
commit 38e3779778
Signed by: liviu
GPG key ID: 6CDB37A4AD2C610C
2 changed files with 12 additions and 10 deletions

View file

@ -52,14 +52,14 @@ jobs:
needs: sonarqube
runs-on: docker
steps:
- name: Prepare environment variables
run: |
echo REGISTRY=${{ env.FORGEJO_HOST }} >> $GITHUB_ENV
- name: Setup Node environment
run: |
apk add --update nodejs npm
node --version
npm --version
- name: Prepare environment variables
run: |
echo REGISTRY=${{ env.FORGEJO_HOST }} >> $GITHUB_ENV
echo CONTAINER_NAME=${{ env.CONTAINER_NAME }} >> $GITHUB_ENV
echo VERSION=$(node -p "require('./package.json').version") >> $GITHUB_ENV
- name: Code checkout
uses: actions/checkout@v4
with:
@ -83,13 +83,14 @@ jobs:
# provenance: false
# tags: ${{ env.REGISTRY }}/${{ github.actor }}/${{ env.CONTAINER_NAME }}:latest
- name: check docker
run: |
docker --version
docker info
# - name: check docker
# run: |
# docker --version
# docker info
- name: Build Docker image (pray)
run: |
docker build -f ./devops/Dockerfile -t ${{ env.CONTAINER_NAME }}:latest .
echo [${{ env.CONTAINER_NAME }}:${{ github.VERSION }}, ${{ env.CONTAINER_NAME }}:latest]
docker build -f ./devops/Dockerfile -t ${{ env.CONTAINER_NAME }}:${{ github.VERSION }} -t ${{ env.CONTAINER_NAME }}:latest .
docker images
####

View file

@ -1,5 +1,6 @@
{
"name": "glowing-fiesta",
"version": "1.0.0",
"type": "module",
"private": true,
"scripts": {