mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-12 10:23:11 +00:00
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: Docker
|
|
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
tags:
|
|
- 'v*.*.*'
|
|
paths-ignore:
|
|
- '**/*.md'
|
|
- '.gitignore'
|
|
- '.github/**'
|
|
- '!.github/workflows/docker.yml'
|
|
- '!.github/workflows/docker-reusable.yml'
|
|
- 'docker/**'
|
|
- '!docker/codex.Dockerfile'
|
|
- '!docker/docker-entrypoint.sh'
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
build-contracts-and-push:
|
|
name: Build and Push Codex Contracts
|
|
uses: codex-storage/github-actions/.github/workflows/docker-reusable.yml@master
|
|
with:
|
|
docker_build_context: vendor/codex-contracts-eth
|
|
docker_file: vendor/codex-contracts-eth/docker/Dockerfile
|
|
dockerhub_repo: codexstorage/codex-contracts-eth
|
|
tag_suffix: codex-factory
|
|
tag_sha_long: true
|
|
checkout-submodules: true
|
|
secrets: inherit
|
|
|
|
build-and-push:
|
|
name: Build and Push
|
|
uses: ./.github/workflows/docker-reusable.yml
|
|
with:
|
|
tag_latest: ${{ github.ref_name == github.event.repository.default_branch || startsWith(github.ref, 'refs/tags/') }}
|
|
contract_image: "codexstorage/codex-contracts-eth:${{ github.sha }}-codex-factory"
|
|
secrets: inherit
|