Skip to content

Commit

Permalink
Merge branch 'rc/barnard' into update-barnard-latest-mx-chain-go
Browse files Browse the repository at this point in the history
# Conflicts:
#	go.mod
#	go.sum
  • Loading branch information
miiu96 committed Dec 3, 2024
2 parents 68bb456 + 9085790 commit 4de847a
Showing 1 changed file with 30 additions and 6 deletions.
36 changes: 30 additions & 6 deletions .github/workflows/deploy-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,20 +47,44 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
- name: Extract metadata (tags, labels) for released releases
if: ${{ github.event.release.prerelease == false }}
id: meta_released
uses: docker/metadata-action@v5
with:
images: multiversx/chainsimulator

- name: Build and push Docker image
id: push
- name: Extract metadata (tags, labels) for prereleased releases
if: ${{ github.event.release.prerelease == true }}
id: meta_prereleased
uses: docker/metadata-action@v5
with:
images: multiversx/chainsimulator
tags: |
type=raw,value=${{ github.event.release.tag_name }}
labels: |
type=raw,value=${{ github.event.release.name }}
- name: Build and push Docker image for released
if: ${{ github.event.release.prerelease == false }}
id: push_released
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta_released.outputs.tags }}
labels: ${{ steps.meta_released.outputs.labels }}

- name: Build and push Docker image for prereleased
if: ${{ github.event.release.prerelease == true }}
id: push_prereleased
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name == 'release' && github.event.action == 'published' }}
tags: ${{ steps.meta_prereleased.outputs.tags }}
labels: ${{ steps.meta_prereleased.outputs.labels }}

0 comments on commit 4de847a

Please sign in to comment.