Skip to content

Commit

Permalink
Execute steps only if successful
Browse files Browse the repository at this point in the history
  • Loading branch information
doganulus authored Jul 24, 2024
1 parent e91f193 commit 1694a7c
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/buildah-build-devel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- completed
push:
paths:
- .github/workflows/buildah-build-devel.yml # Self-trigger
- .github/workflows/buildah-build-devel.yml # Self-trigger

env:
REGISTRY: ghcr.io/bounverif
Expand All @@ -29,16 +29,17 @@ permissions:
jobs:
autoware-devel-build:
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 2048 # Reserve disk space for repository
remove-dotnet: 'true'
remove-android: 'true'
remove-haskell: 'true'
remove-codeql: 'true'
remove-docker-images: 'true'
remove-dotnet: "true"
remove-android: "true"
remove-haskell: "true"
remove-codeql: "true"
remove-docker-images: "true"
build-mount-path: ${{ env.CONTAINERS_ROOT }} # The remaining space only for container build

- run: mkdir -p $TMPDIR
Expand All @@ -62,12 +63,12 @@ jobs:
tags: latest-devel
layers: true
oci: true
extra-args:
--target autoware-devel
extra-args: --target autoware-devel
containerfiles: |
containers/autoware-devel/Dockerfile
- name: Push to GitHub Container Repository
if: github.ref == 'refs/heads/main'
id: push-devel-ghcr
uses: redhat-actions/push-to-registry@v2
with:
Expand Down

0 comments on commit 1694a7c

Please sign in to comment.