fix: add missing directory in dockerfile #126
This file contains 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 Docker image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
push_to_registry: | |
name: Push Docker image to GHCR | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
contents: read | |
attestations: write | |
id-token: write | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/[email protected] | |
- name: Log in to GHCR | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Cargo Cache | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
cargo-registry-cache | |
sccache-cache | |
key: ${{ runner.os }}-cargo-cache-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-cargo-cache | |
- name: inject cargo caches into docker | |
uses: reproducible-containers/[email protected] | |
with: | |
cache-map: | | |
{ | |
"cargo-registry-cache": "/usr/local/cargo/registry", | |
"sccache-cache": "/sccache" | |
} | |
skip-extraction: ${{ steps.cache.outputs.cache-hit }} | |
- name: Extract Docker metadata for firefly-cardanoconnect | |
id: firefly-cardanoconnect-meta | |
uses: docker/[email protected] | |
with: | |
images: ghcr.io/blockfrost/firefly-cardanoconnect | |
- name: Build and push Docker image for firefly-cardanoconnect | |
id: firefly-cardanoconnect-push | |
uses: docker/[email protected] | |
with: | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
context: . | |
file: ./Dockerfile | |
target: firefly-cardanoconnect | |
push: true | |
tags: ${{ steps.firefly-cardanoconnect-meta.outputs.tags }} | |
labels: ${{ steps.firefly-cardanoconnect-meta.outputs.labels }} | |
- name: Extract Docker metadata for firefly-cardanosigner | |
id: firefly-cardanosigner-meta | |
uses: docker/[email protected] | |
with: | |
images: ghcr.io/blockfrost/firefly-cardanosigner | |
- name: Build and push Docker image for firefly-cardanosigner | |
id: firefly-cardanosigner-push | |
uses: docker/[email protected] | |
with: | |
registry: ghcr.io | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
context: . | |
file: ./Dockerfile | |
target: firefly-cardanosigner | |
push: true | |
tags: ${{ steps.firefly-cardanosigner-meta.outputs.tags }} | |
labels: ${{ steps.firefly-cardanosigner-meta.outputs.labels }} | |