Skip to content

Commit

Permalink
ci: (RI-4198) Use container to run job
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercm1410 committed Sep 6, 2024
1 parent 48a0477 commit da66cd1
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,8 @@ on:
jobs:
release:
runs-on: ubuntu-latest
services:
bun:
image: oven/bun:alpine
options: >
--volume /home/runner/work/${{ github.repository }}:/workspace
--workdir /workspace
container:
image: oven/bun:alpine
steps:
- name: πŸ’» Checkout current pull-request revision code
uses: actions/checkout@v4
Expand All @@ -25,8 +20,8 @@ jobs:
with:
bun-version: latest

# - name: πŸ”΅ Install Task
# uses: arduino/setup-task@v2
- name: πŸ”΅ Install Task
uses: arduino/setup-task@v2

- name: πŸ’Ό Configure Git user
run: |
Expand All @@ -35,34 +30,15 @@ jobs:
- name: πŸ“¦ Install package dependencies using lockfile
run: bun install --frozen-lockfile
- name: πŸ“¦ Install package dependencies using lockfile
run: docker ps

- name: πŸ“¦ Install package dependencies using lockfile
run: docker exec
-t bun
bun install -g @go-task/cli
bun install --frozen-lockfile

- name: πŸ”¨ Run build
run: docker exec
-t bun
bun run build
run: bun run build

- name: πŸ”¨ Compile binary for supported platforms
run: docker exec
-t bun
run: |
task compile
task compress


- name: πŸ”¨ Compile binary for supported platforms
run: docker exec
-t bun
cp -r
/workspace/dist
./dist

- name: πŸš€ Release a new version
run: bun release-it --ci
env:
Expand Down

0 comments on commit da66cd1

Please sign in to comment.