It worked with --privileged with rootful docker, try podman with rootless
This commit is contained in:
parent
1cb010342e
commit
1bfd7a2dd5
@ -9,30 +9,26 @@ jobs:
|
|||||||
package_harmony_composer:
|
package_harmony_composer:
|
||||||
container:
|
container:
|
||||||
image: hub.nationtech.io/harmony/harmony_composer:latest@sha256:42884e0cea2063e0ce15d61b3edc64c2bc2069e845a4df8bd6529bc27e36e005
|
image: hub.nationtech.io/harmony/harmony_composer:latest@sha256:42884e0cea2063e0ce15d61b3edc64c2bc2069e845a4df8bd6529bc27e36e005
|
||||||
options: --privileged
|
|
||||||
runs-on: Taha-Linux
|
runs-on: Taha-Linux
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Build for Linux x86_64
|
# - name: Build for Linux x86_64
|
||||||
run: cargo build --release --bin harmony_composer --target x86_64-unknown-linux-gnu
|
# run: cargo build --release --bin harmony_composer --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
# - name: Build for Linux ARM64
|
# - name: Build for Linux ARM64
|
||||||
# run: cargo build --release --bin harmony_composer --target aarch64-unknown-linux-gnu
|
# run: cargo build --release --bin harmony_composer --target aarch64-unknown-linux-gnu
|
||||||
|
|
||||||
- name: Build for Windows x86_64 GNU
|
# - name: Build for Windows x86_64 GNU
|
||||||
run: cargo build --release --bin harmony_composer --target x86_64-pc-windows-gnu
|
# run: cargo build --release --bin harmony_composer --target x86_64-pc-windows-gnu
|
||||||
|
|
||||||
# - name: Build for MacOS ARM64
|
# - uses: actions/upload-artifact@v3
|
||||||
# run: cargo build --release --bin harmony_composer --target aarch64-apple-darwin
|
# with:
|
||||||
|
# name: binaries
|
||||||
- uses: actions/upload-artifact@v3
|
# path: |
|
||||||
with:
|
# target/x86_64-unknown-linux-gnu/release/harmony_composer
|
||||||
name: binaries
|
# target/x86_64-pc-windows-gnu/release/harmony_composer.exe
|
||||||
path: |
|
|
||||||
target/x86_64-unknown-linux-gnu/release/harmony_composer
|
|
||||||
target/x86_64-pc-windows-gnu/release/harmony_composer.exe
|
|
||||||
|
|
||||||
- name: Setup log into hub.nationtech.io
|
- name: Setup log into hub.nationtech.io
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@ -43,10 +39,10 @@ jobs:
|
|||||||
|
|
||||||
# TODO: build ARM images too
|
# TODO: build ARM images too
|
||||||
- name: Build docker container
|
- name: Build docker container
|
||||||
run: docker build . -t hub.nationtech.io/harmony/harmony_composer
|
run: docker build . -t hub.nationtech.io/harmony/harmony_composer:latest
|
||||||
|
|
||||||
- name: Push docker container
|
- name: Push docker container
|
||||||
run: docker push hub.nationtech.io/harmony/harmony_composer
|
run: docker push -a hub.nationtech.io/harmony/harmony_composer
|
||||||
|
|
||||||
# - name: Set up Docker Buildx
|
# - name: Set up Docker Buildx
|
||||||
# uses: docker/setup-buildx-action@v3
|
# uses: docker/setup-buildx-action@v3
|
||||||
|
@ -15,8 +15,8 @@ RUN apt update
|
|||||||
# For checkout action
|
# For checkout action
|
||||||
RUN apt install -y nodejs
|
RUN apt install -y nodejs
|
||||||
|
|
||||||
RUN apt install -y docker.io
|
# RUN apt install -y docker.io
|
||||||
# RUN apt install -y podman podman-docker
|
RUN apt install -y podman podman-docker
|
||||||
|
|
||||||
RUN rustup target add x86_64-unknown-linux-gnu
|
RUN rustup target add x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user