Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update #94

Merged
merged 8 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.20
require (
github.com/gin-gonic/gin v1.9.1
github.com/multiversx/mx-chain-core-go v1.2.23
github.com/multiversx/mx-chain-go v1.8.5-0.20241115221906-c22ee81cece5
github.com/multiversx/mx-chain-go v1.8.5-0.20241122114033-3094bb08ac56
github.com/multiversx/mx-chain-logger-go v1.0.15
github.com/multiversx/mx-chain-proxy-go v1.1.54
github.com/pelletier/go-toml v1.9.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ github.com/multiversx/mx-chain-crypto-go v1.2.12 h1:zWip7rpUS4CGthJxfKn5MZfMfYPj
github.com/multiversx/mx-chain-crypto-go v1.2.12/go.mod h1:HzcPpCm1zanNct/6h2rIh+MFrlXbjA5C8+uMyXj3LI4=
github.com/multiversx/mx-chain-es-indexer-go v1.7.10 h1:Umi7WN8h4BOXLw7CM3VgvaWkLGef7nXtaPIGbjBCT3U=
github.com/multiversx/mx-chain-es-indexer-go v1.7.10/go.mod h1:oGcRK2E3Syv6vRTszWrrb/TqD8akq0yeoMr1wPPiTO4=
github.com/multiversx/mx-chain-go v1.8.5-0.20241115221906-c22ee81cece5 h1:G2yv0HYFCWuyMCXrsJ1QgexAJApfofXugu3ZCHmSF1k=
github.com/multiversx/mx-chain-go v1.8.5-0.20241115221906-c22ee81cece5/go.mod h1:K17YgUxKX/EpOaswepIrWqVSyNNhUe+LADDuZT6mvsU=
github.com/multiversx/mx-chain-go v1.8.5-0.20241122114033-3094bb08ac56 h1:WQUyWZxVsg3inazU1s2gEcUrEOeYodJefALb1h1idJg=
github.com/multiversx/mx-chain-go v1.8.5-0.20241122114033-3094bb08ac56/go.mod h1:K17YgUxKX/EpOaswepIrWqVSyNNhUe+LADDuZT6mvsU=
github.com/multiversx/mx-chain-logger-go v1.0.15 h1:HlNdK8etyJyL9NQ+6mIXyKPEBo+wRqOwi3n+m2QIHXc=
github.com/multiversx/mx-chain-logger-go v1.0.15/go.mod h1:t3PRKaWB1M+i6gUfD27KXgzLJJC+mAQiN+FLlL1yoGQ=
github.com/multiversx/mx-chain-proxy-go v1.1.54 h1:o6rcZVpE+Qkf+CyNIZRvfRHAZGO7HcloITglSXRH7n8=
Expand Down