This repository was archived by the owner on Jun 1, 2026. It is now read-only.
Repository navigation
Publish Dynode Container #44
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Dynode Container | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - "apps/dynode/**" | |
| - "Cargo.lock" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| packages: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| env: | |
| DYNODE_IMAGE: ghcr.io/gemwalletcom/dynode | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.PACKAGES_GITHUB_TOKEN }} | |
| - name: Build and push dynode | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| file: ./Dockerfile | |
| target: dynode | |
| push: true | |
| platforms: linux/amd64 | |
| cache-from: type=gha,scope=dynode | |
| cache-to: type=gha,mode=max,scope=dynode | |
| labels: | | |
| org.opencontainers.image.source=https://github.com/${{ github.repository }} | |
| tags: | | |
| ${{ env.DYNODE_IMAGE }}:latest | |
| ${{ env.DYNODE_IMAGE }}:${{ github.sha }} |