Skip to content

Bump the cargo group across 2 directories with 11 updates #107

Bump the cargo group across 2 directories with 11 updates

Bump the cargo group across 2 directories with 11 updates #107

Workflow file for this run

name: docker
permissions:
contents: read
packages: write
on:
workflow_dispatch: {}
push:
branches:
- main
tags:
- 'v*'
jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
id: setup-buildx
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@318604b99e75e41977312d83839a89be02ca4893 # v5.9.0
id: meta
with:
images: ghcr.io/pendulum-project/nts-pool
tags: |
type=ref,event=tag
type=sha
env:
DOCKER_METADATA_SHORT_SHA_LENGTH: 12
- name: Cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
id: cache
with:
path: cache-mount
key: cache-mount-${{ hashFiles('Dockerfile') }}
- name: Restore Docker cache mounts
uses: reproducible-containers/buildkit-cache-dance@5b81f4d29dc8397a7d341dba3aeecc7ec54d6361 # v3.3.0
with:
builder: ${{ steps.setup-buildx.outputs.name }}
cache-dir: cache-mount
dockerfile: Dockerfile
skip-extraction: ${{ steps.cache.outputs.cache-hit }}
- name: Build and push
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
annotations: ${{ steps.meta.outputs.annotations }}
- name: Trigger update workflow
run: |
curl -v -X POST \
-H "Authorization: token ${{ secrets.UPDATE_TOKEN }}" \
-H "Accept: application/vnd.github+json" \
-H "Content-Type: application/json" \
https://api.github.com/repos/pendulum-project/nts-pool-deploy/dispatches \
-d '{"event_type":"image-update","client_payload":{"chart":"nts-pool","tags":${{ toJson(fromJson(steps.meta.outputs.json).tags) }},"commit":"${{ github.sha }}","ref":"${{ github.ref }}","ref_name":"${{ github.ref_name }}","build_time":"${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}","build_version":"${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}"}}'