chore: Checkout proper branch and build using cargo for buildah-build

This commit is contained in:
Gerald Pinder 2024-06-06 19:58:41 -04:00
parent dcbccb602d
commit 18e48a34a4

View file

@ -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: