From fa604595e67ef2a352af6e83777fdd9e8bca0319 Mon Sep 17 00:00:00 2001 From: Boris Glimcher <36732377+glimchb@users.noreply.github.com> Date: Wed, 1 May 2024 13:17:01 -0400 Subject: [PATCH] ci: tag docker image on releases with tag Signed-off-by: Boris Glimcher --- .github/workflows/release.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f917394..6393983 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,3 +90,22 @@ jobs: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} run: | gh release create ${{github.event.inputs.version}} -t ${{github.event.inputs.version}} -n "Changes since last release:"$'\n\n'"$CHANGES" *.rpm + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{secrets.DOCKER_USERNAME}} + password: ${{secrets.DOCKER_PASSWORD}} + - name: Build Docker image and push + id: docker_build + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: dmtf/redfish-tacklebox:${{github.event.inputs.version}},dmtf/redfish-tacklebox:latest + platforms: linux/arm64,linux/amd64 + - name: Image digest + run: echo ${{steps.docker_build.outputs.digest}}