message: Add docker image version tag, which would correspond to package.json version of packages/gateway
diff: @@ -54,27 +54,27 @@ jobs:
  timeout-minutes: 15
  needs: release
  steps:
  - -
  - name: Set up QEMU
  + - name: Set up QEMU
  uses: docker/setup-qemu-action@v1
  - -
  - name: Set up Docker Buildx
  + - name: Set up Docker Buildx
  uses: docker/setup-buildx-action@v1
  - -
  - name: Login to Dockerhub
  + - name: Login to Dockerhub
  uses: docker/login-action@v1
  with:
  username: ${{ secrets.DOCKERHUB_USERNAME }}
  password: ${{ secrets.DOCKERHUB_TOKEN }}
  - -
  - name: Login to GitHub Container Registry
  + - name: Login to GitHub Container Registry
  uses: docker/login-action@v1
  with:
  registry: ghcr.io
  username: ${{ secrets.GH_REGISTRY_USERNAME }}
  password: ${{ secrets.GH_REGISTRY_TOKEN }}
  - -
  - name: Build and push
  + - name: Get current Gateway version
  + id: package-version
  + uses: martinbeentjes/npm-get-version-action@master
  + with:
  + path: packages/gateway
  + - name: Build and push
  id: docker_build
  uses: docker/build-push-action@v2
  with:
  @@ -82,8 +82,9 @@ jobs:
  tags: |
  gqlportal/gateway:latest
  gqlportal/gateway:0.x
  + gqlportal/gateway:${{ steps.package-version.outputs.current-version }}
  ghcr.io/graphql-portal/graphql-portal-gateway:latest
  ghcr.io/graphql-portal/graphql-portal-gateway:0.x
  - -
  - name: Image digest
  + ghcr.io/graphql-portal/graphql-portal-gateway:${{ steps.package-version.outputs.current-version }}
  + - name: Image digest
  run: echo ${{ steps.docker_build.outputs.digest }}
  