Skip to content

Commit

Permalink
Build base image to fix Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardobranco777 committed May 24, 2024
1 parent 6c236a8 commit 48e1419
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.PCW_IMAGE_PREFIX }}_${{ matrix.suffix }}

- name: Build base image
if: ${{ github.event_name == 'pull_request' }}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
with:
context: .
file: containers/Dockerfile_base
push: false
tags: 'pcw_base_main:master'
- name: Update base image
if: ${{ github.event_name == 'pull_request' }}
run: |
sed -i -e '/FROM/s%ghcr.io/suse/%%' containers/Dockerfile
- name: Build Docker image (PCW)
if: ${{ matrix.suffix == 'main' }}
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
Expand Down

0 comments on commit 48e1419

Please sign in to comment.