Skip to content

Commit

Permalink
Merge branch 'main' into podman-api/cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpinder authored Jan 27, 2024
2 parents 73a64cd + 67f2d34 commit 6094070
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,9 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Get Latest Tag
id: latest_tag
run: echo "LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)" >> $GITHUB_OUTPUT

- name: Check Cargo Version
id: cargo_version
run: echo "CARGO_PACKAGE_VERSION=$(tomlq '.package.version' $PWD/Cargo.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT

- name: Run build
env:
TAG: ${{ steps.latest_tag.outputs.LATEST_TAG }}
LATEST: ${{ steps.cargo_version.outputs.CARGO_PACKAGE_VERSION == steps.latest_tag.outputs.LATEST_TAG }}
run: earthly --push --ci -P +all --TAG=${{ env.TAG }} --LATEST=${{ env.LATEST }}
run: |
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
CARGO_PACKAGE_VERSION="v$(tomlq '.package.version' $PWD/Cargo.toml | sed 's/\"//g')"
LATEST=$(test "$CARGO_PACKAGE_VERSION" = "$LATEST_TAG" && echo true || echo false)
earthly --push --ci -P +all --TAG=$LATEST_TAG --LATEST=$LATEST

0 comments on commit 6094070

Please sign in to comment.