Skip to content

Commit

Permalink
docker: copy in commands to build own image
Browse files Browse the repository at this point in the history
  • Loading branch information
carlaKC committed Oct 25, 2024
1 parent 2e3da66 commit daefd35
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ jobs:
run: sudo apt install -y protobuf-compiler
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install sim-cli
run: make install
- name: Install dev sim-cli
run: make dev-install
- name: cargo build
run: cargo build --release --all-features
- name: cargo test
run: cargo test --all-features --all-targets --benches
3 changes: 2 additions & 1 deletion .github/workflows/on-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
tags:
- v[0-9]+.[0-9]+.[0-9]+*
- "[0-9]+.[0-9]+.[0-9]+*"
workflow_dispatch:

permissions:
contents: read
Expand All @@ -18,6 +19,6 @@ jobs:
uses: ./.github/workflows/push-docker-image.yml
secrets: inherit
with:
image_name: bitcoindevproject/simln
image_name: carlakirkcohen/simln
artifact_name: simln-docker
dockerfile: ./docker/Dockerfile
11 changes: 6 additions & 5 deletions .github/workflows/push-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,22 @@ on:
inputs:
image_name:
description: Name for the docker image
required: true
type: string
default: carlakirkcohen/simln # Hardcoded value
artifact_name:
description: Name for the temporary artifact
required: true
type: string
default: simln-docker # Hardcoded value
dockerfile:
description: Path to the dockerfile
required: true
type: string
default: ./docker/Dockerfile # Hardcoded value
latest:
description: Whether to tag the image as latest
required: false
type: boolean
default: false

workflow_dispatch:

permissions:
Expand All @@ -43,7 +44,7 @@ jobs:
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ inputs.image_name }}
images: carlakirkcohen/simln
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
Expand Down Expand Up @@ -104,7 +105,7 @@ jobs:
- name: Create manifest list and push
working-directory: /tmp/digests
run: |
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
docker buildx imagetools create -t attackathon \
$(printf '${{ inputs.image_name }}@sha256:%s ' *)
- name: Inspect image
run: |
Expand Down

0 comments on commit daefd35

Please sign in to comment.