Skip to content

Commit

Permalink
feat: updated release tag generation (#144)
Browse files Browse the repository at this point in the history
* feat: updated release tag generation

* feat: using root user in runner container

* feat: pinning ubuntu version
  • Loading branch information
Ani1357 authored Nov 22, 2024
1 parent 3b077bc commit c3c9765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ env:
jobs:
build-test-push-release:
if: "((contains(github.event.head_commit.message, 'chore(release)') && github.ref == 'refs/heads/main') || !contains(github.event.head_commit.message, 'chore(release)')) && !contains(github.event.head_commit.message, 'ci skip') && !startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Set env
run: |
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD
docker tag $REPO:$TAG $REPO:latest
docker push $REPO:latest
release_tag=v${COMMIT_MSG#* }
release_tag=v$(jq -r '.version' < package.json)
echo tag=$release_tag >> $GITHUB_OUTPUT
echo "Releasing $REPO:$release_tag"
docker tag $REPO:$TAG $REPO:$release_tag
Expand Down

0 comments on commit c3c9765

Please sign in to comment.