Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
version: ${{ fromJson(needs.list_base_images.outputs.versions) }}
steps:
- name: Free Disk Space (Ubuntu)
if: ${{ needs.list_base_images.outputs.base_has_changed == 'true' }}
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
Expand All @@ -61,15 +62,18 @@ jobs:
swap-storage: true

- name: Login to Docker Hub
if: ${{ needs.list_base_images.outputs.base_has_changed == 'true' }}
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set up QEMU
if: ${{ needs.list_base_images.outputs.base_has_changed == 'true' }}
uses: docker/setup-qemu-action@v3

- name: Enable multi-platform builds
if: ${{ needs.list_base_images.outputs.base_has_changed == 'true' }}
uses: docker/setup-buildx-action@v3
with:
name: container
Expand All @@ -81,11 +85,6 @@ jobs:
run: ./generate_tags.sh
working-directory: base

- name: Base Images > Docker Build Tags
run: DOCKER_REPOSITORY=${{ vars.DOCKER_BASE_REPOSITORY}} ./docker_tags.sh --version ${{ matrix.version }}
if: ${{ github.event_name == 'pull_request' }}
working-directory: base

- name: Base Images > Docker Build & Force Push
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' && needs.list_base_images.outputs.base_has_changed == 'true' }}
run: DOCKER_REPOSITORY=${{ vars.DOCKER_BASE_REPOSITORY}} ./docker_tags.sh -p -f --version ${{ matrix.version }}
Expand Down Expand Up @@ -114,6 +113,7 @@ jobs:
- 'images/${{ matrix.ps-version }}/**'

- name: Free Disk Space (Ubuntu)
if: ${{ (needs.list_base_images.outputs.base_has_changed == 'true' || steps.filter.outputs.image_has_changed == 'true') }}
uses: jlumbroso/free-disk-space@main
with:
# this might remove tools that are actually needed,
Expand Down
Loading