Skip to content

Commit

Permalink
Merge pull request #153 from glimchb/patch-2
Browse files Browse the repository at this point in the history
ci: tag docker image on releases with tag
  • Loading branch information
mraineri committed May 3, 2024
2 parents ed99181 + fa60459 commit 5f15fdb
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

0 comments on commit 5f15fdb

Please sign in to comment.