Skip to content

Commit

Permalink
make work ci create release of tag (#39)
Browse files Browse the repository at this point in the history
* compile only the correct package

* temporary using local dockerfiles

* fix ci
  • Loading branch information
asiniscalchi authored Oct 9, 2023
1 parent 56f8e8e commit e360d23
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 9 deletions.
31 changes: 25 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,42 @@ jobs:
runs-on:
group: laos
labels: ubuntu-16-cores
strategy:
matrix:
docker_name: ['evolution-node', 'ownership-node', 'bridge']
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- uses: ./.github/actions/cache
with:
cache-key: build_and_push
- name: Build
run: |
cargo build --release
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and push images
- name: push image ownership node
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./docker/ownership-node.local.Dockerfile
tags: freeverseio/laos-ownership-node:${{ github.ref_name }}

- name: push image evolution node
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./docker/evolution-node.local.Dockerfile
tags: freeverseio/laos-evolution-node:${{ github.ref_name }}

- name: push image bridge
uses: docker/build-push-action@v4
with:
context: .
push: true
file: ./docker/${{ matrix.docker_name }}.Dockerfile
tags: freeverseio/laos-${{ matrix.docker_name }}:${{ github.ref_name }}
file: ./docker/bridge.local.Dockerfile
tags: freeverseio/laos-bridge:${{ github.ref_name }}
2 changes: 1 addition & 1 deletion docker/bridge.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM docker.io/paritytech/ci-linux:production as builder
WORKDIR /laos
COPY . /laos

RUN SKIP_WASM_BUILD=1 cargo build --release
RUN SKIP_WASM_BUILD=1 cargo build --release -p laos-relay

# This is the 2nd stage: a very small image where we copy the laos binary."
FROM docker.io/debian:bullseye-slim
Expand Down
2 changes: 1 addition & 1 deletion docker/evolution-node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /laos
COPY . /laos

RUN rustup target add wasm32-unknown-unknown --toolchain nightly
RUN cargo build --locked --release
RUN cargo build --locked --release -p laos-evolution

# This is the 2nd stage: a very small image where we copy the laos binary."
FROM docker.io/library/ubuntu:22.04
Expand Down
2 changes: 1 addition & 1 deletion docker/ownership-node.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ WORKDIR /laos
COPY . /laos

RUN rustup target add wasm32-unknown-unknown --toolchain nightly
RUN cargo build --locked --release
RUN cargo build --locked --release -p laos-ownership

# This is the 2nd stage: a very small image where we copy the laos binary."
FROM docker.io/library/ubuntu:22.04
Expand Down

0 comments on commit e360d23

Please sign in to comment.