diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 597a37d..5a1fea6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,6 +17,7 @@ env: MY_IMAGE_NAME: "${{ github.event.repository.name }}" # the name of the image produced by this build, matches repo names MY_IMAGE_DESC: "Azure" IMAGE_REGISTRY: "ghcr.io/${{ github.repository_owner }}" # do not edit + FEDORA_MAJOR_VERSION: "40" jobs: build_push: @@ -53,6 +54,7 @@ jobs: done BUILD_TAGS+=("${TIMESTAMP}") + BUILD_TAGS+=("${{ env.FEDORA_MAJOR_VERSION }}") BUILD_TAGS+=("latest") if [[ "${{ github.event_name }}" == "pull_request" ]]; then @@ -96,6 +98,8 @@ jobs: # Postfix image name with -custom to make it a little more descriptive # Syntax: https://docs.github.com/en/actions/learn-github-actions/expressions#format image: ${{ env.MY_IMAGE_NAME }} + build-args: | + FEDORA_MAJOR_VERSION=${{ env.FEDORA_MAJOR_VERSION }} tags: | ${{ steps.generate-tags.outputs.alias_tags }} labels: ${{ steps.meta.outputs.labels }}