build: Re-enable init on force

This commit is contained in:
Colin Walters 2023-01-24 14:00:17 -05:00
parent 38929259a3
commit b330f907e5
1 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ jobs:
run: podman login --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
# Make force triggering a build always build the image
#- run: echo "force_initialize=1" >> $GITHUB_ENV
# if: github.event_name == 'workflow_dispatch'
- run: echo "force_initialize=1" >> $GITHUB_ENV
if: github.event_name == 'workflow_dispatch'
- name: Build ostree container
run: rpm-ostree compose image --format=registry ${force_initialize:+--initialize} ${{ matrix.os }}.yaml ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.os }}-oscore