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
33 changes: 27 additions & 6 deletions .github/workflows/__call-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,16 @@ jobs:
echo $matrix
echo $matrix | jq .
echo "matrix=$matrix" >> $GITHUB_OUTPUT
- name: Additional Outputs
id: additional_outputs
run: |
# set outputs for later jobs
REPOSITORY=${{ github.repository }}
BASE_TAG=$(echo $REPOSITORY | tr '[:upper:]' '[:lower:]')
echo "base_tag=${BASE_TAG}" >> $GITHUB_OUTPUT

outputs:
base_tag: ${{ steps.additional_outputs.outputs.base_tag }}
dockerfiles: ${{ steps.find.outputs.dockerfiles }}
matrix: ${{ steps.find.outputs.matrix }}

Expand Down Expand Up @@ -167,8 +175,7 @@ jobs:
fi

# setup the tags
REPOSITORY=${{ github.repository }}
BASE_TAG=$(echo $REPOSITORY | tr '[:upper:]' '[:lower:]')
BASE_TAG="${{ needs.check_dockerfiles.outputs.base_tag }}"

TAGS="${BASE_TAG}:${COMMIT:0:7}${{ matrix.tag }},ghcr.io/${BASE_TAG}:${COMMIT:0:7}${{ matrix.tag }}"

Expand Down Expand Up @@ -313,14 +320,28 @@ jobs:
path: artifacts/
if-no-files-found: error

release:
name: Release
if: >
github.event_name == 'push' &&
github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs:
- check_dockerfiles
- docker
steps:
- name: Checkout
uses: actions/checkout@v4
with:
sparse-checkout: |
DOCKER_README.md
sparse-checkout-cone-mode: false

- name: Update Docker Hub Description
if: >
github.event_name == 'push' &&
github.ref == 'refs/heads/master'
uses: peter-evans/dockerhub-description@v4
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_PASSWORD }} # token is not currently supported
repository: ${{ env.BASE_TAG }}
repository: ${{ needs.check_dockerfiles.outputs.base_tag }}
short-description: ${{ github.event.repository.description }}
readme-filepath: ./DOCKER_README.md