diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 00b488f..ce20f19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,12 +27,8 @@ jobs: registry: ghcr.io username: ${{github.actor}} password: ${{secrets.GITHUB_TOKEN}} - - name: get version - id: get_version - run: | - echo "version=$(cat VERSION)" >> $GITHUB_OUTPUT - name: build images run: | - docker build ./api --tag ghcr.io/greysoh/api:${{ steps.get_version.outputs.version }} + docker build ./api --tag ghcr.io/greysoh/api:$(cat VERSION) docker push ghcr.io/greysoh/api:latest - docker push ghcr.io/greysoh/api:${{ steps.get_version.outputs.version }} \ No newline at end of file + docker push ghcr.io/greysoh/api:$(cat VERSION) \ No newline at end of file