chore: Checkout proper branch and build using cargo for buildah-build
This commit is contained in:
parent
dcbccb602d
commit
18e48a34a4
1 changed files with 13 additions and 19 deletions
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
|
@ -193,11 +193,11 @@ jobs:
|
|||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
# Setup repo and add caching
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{github.event.pull_request.head.ref}}
|
||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||
ref: main
|
||||
|
||||
|
||||
- name: Install bluebuild
|
||||
run: |
|
||||
|
|
@ -249,11 +249,11 @@ jobs:
|
|||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
# Setup repo and add caching
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{github.event.pull_request.head.ref}}
|
||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||
ref: main
|
||||
|
||||
|
||||
- name: Install bluebuild
|
||||
run: |
|
||||
|
|
@ -304,11 +304,11 @@ jobs:
|
|||
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
# Setup repo and add caching
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: ${{github.event.pull_request.head.ref}}
|
||||
repository: ${{github.event.pull_request.head.repo.full_name}}
|
||||
ref: main
|
||||
|
||||
|
||||
- name: Install bluebuild
|
||||
run: |
|
||||
|
|
@ -341,7 +341,6 @@ jobs:
|
|||
uses: ublue-os/remove-unwanted-software@v6
|
||||
|
||||
- uses: sigstore/cosign-installer@v3.3.0
|
||||
- uses: earthly/actions-setup@v1
|
||||
|
||||
- name: Setup Podman
|
||||
shell: bash
|
||||
|
|
@ -355,22 +354,17 @@ jobs:
|
|||
sudo apt-get update
|
||||
sudo apt-get install -y buildah
|
||||
|
||||
- name: Earthly login
|
||||
env:
|
||||
EARTHLY_SAT_TOKEN: ${{ secrets.EARTHLY_SAT_TOKEN }}
|
||||
if: env.EARTHLY_SAT_TOKEN != null
|
||||
run: |
|
||||
earthly account login --token ${{ secrets.EARTHLY_SAT_TOKEN }} >> /dev/null
|
||||
earthly org s blue-build
|
||||
earthly sat s main
|
||||
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
||||
|
||||
# Setup repo and add caching
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: main
|
||||
|
||||
|
||||
- name: Install bluebuild
|
||||
run: |
|
||||
earthly -a -P +installer/bluebuild /usr/local/bin/bluebuild
|
||||
cargo install --path . --debug
|
||||
|
||||
- name: Run Build
|
||||
env:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue