From a625eccb634302316afa63693876641368752d17 Mon Sep 17 00:00:00 2001 From: thehedhly Date: Sun, 21 Jan 2024 12:38:48 +0100 Subject: [PATCH] Load builds --- .github/workflows/ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 45c8d78..ac54186 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: data: + - package: ansible-core - package: ansible-core version: 2.16 runs-on: ubuntu-latest @@ -34,6 +35,8 @@ jobs: uses: docker/metadata-action@v5 with: images: thehedhly/${{ matrix.data.package }} + labels: | + org.opencontainers.image.version=${{ matrix.data.version }} - name: 'Build and push' uses: docker/build-push-action@v5 with: @@ -44,6 +47,6 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: | - ANSIBLE_INSTALL_REFS=${{ matrix.data.package }}==${{ matrix.data.version }} - # labels: - # - "$BUILD_TIME" + ANSIBLE_INSTALL_REFS=${{ matrix.data.version == '' && matrix.data.package || format('{0}={1}',matrix.data.package,matrix.data.version) }} + +# ANSIBLE_INSTALL_REFS=${{ matrix.data.package }}==${{ matrix.data.version }}