Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
ci: update release workflow
  • Loading branch information
johnstcn committed Aug 7, 2024
commit d709a91e5551f068c0b5bff6f86c52e5eb84eeca
17 changes: 13 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
name: Build and publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-tags: true

- name: Echo Go Cache Paths
id: go-cache-paths
Expand All @@ -44,11 +46,18 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push
- name: Get version
id: get-version
env:
ENVBUILDER_RELEASE: "t"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

review: the updated script will emit -dev versions unless this is explicitly set. In this case it will validate that the version is an annotated tag.

run: |
VERSION=$(./scripts/version.sh)
BASE=ghcr.io/coder/envbuilder
echo "ENVBUILDER_VERSION=$(./scripts.version.sh)" >> $GITHUB_OUTPUT

- name: Build and Push
env:
VERSION: "${{ steps.get-version.outputs.ENVBUILDER_VERSION }}"
BASE: "ghcr.io/coder/envbuilder"
run: |
./scripts/build.sh \
--arch=amd64 \
--arch=arm64 \
Expand Down