Skip to content

Commit

Permalink
chore: change image name in ghcr.io (dragonflyoss#179)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <gaius.qi@gmail.com>
  • Loading branch information
gaius-qi committed Dec 27, 2023
1 parent cc20dfc commit 9771151
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@ jobs:
VERSION=${{ steps.get_version.outputs.VERSION }}
tags: |
dragonflyoss/client:${{ steps.get_version.outputs.VERSION }}
ghcr.io/${{ env.IMAGE_REPOSITORY }}/client:${{ steps.get_version.outputs.VERSION }}
ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.get_version.outputs.VERSION }}
push: true
39 changes: 15 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,15 @@ on:
- v*

jobs:
release-github:
runs-on: ${{ matrix.os }}
build-cross:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- build: linux
os: ubuntu-latest
target: x86_64-unknown-linux-musl
- build: linux
os: ubuntu-latest
target: aarch64-unknown-linux-gnu
- build: linux
os: ubuntu-latest
target: aarch64-unknown-linux-musl
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl

steps:
- name: Checkout
Expand All @@ -33,16 +25,15 @@ jobs:
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
override: true

- name: Install dependencies
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev libclang-dev protobuf-compiler -build-essential libudev-dev perl
rustup set profile minimal
rustup toolchain install stable
rustup default stable
rustup override set stable
rustup target add --toolchain stable ${{ matrix.target }}
- name: Install cross
run: cargo install cross

- name: Build
uses: actions-rs/cargo@v1
Expand Down

0 comments on commit 9771151

Please sign in to comment.