Skip to content

Commit

Permalink
Modifying workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseBlume committed Jun 19, 2024
1 parent b8d3e99 commit 6ebda2f
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ jobs:
name: raspirus_${{ env.VERSION }}_${{ matrix.arch}}_${{ github.run_number }}.deb
path: ./dist/raspirus_${{ env.VERSION }}_${{ matrix.arch }}.deb

build_armhf:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Build the armhf Docker image
run: docker build -t raspirus-armhf -f ./docker/armhf/Dockerfile .

- name: Create the Docker container
run: docker create --name raspirus raspirus-armhf

- name: Create dist folder
run: mkdir -p ./dist

- name: Copy file from docker
run: docker cp raspirus:/usr/app/raspirus/target/armv7-unknown-linux-gnueabihf/release/bundle/deb/raspirus_${{ env.VERSION }}_armhf.deb ./dist

- name: Upload file to artifacts
uses: actions/upload-artifact@v4
with:
name: raspirus_${{ env.VERSION }}_armhf_${{ github.run_number }}.deb
path: ./dist/raspirus_${{ env.VERSION }}_armhf.deb
# build_armhf:
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout code
# uses: actions/checkout@v4
#
# - name: Build the armhf Docker image
# run: docker build -t raspirus-armhf -f ./docker/armhf/Dockerfile .
#
# - name: Create the Docker container
# run: docker create --name raspirus raspirus-armhf
#
# - name: Create dist folder
# run: mkdir -p ./dist
#
# - name: Copy file from docker
# run: docker cp raspirus:/usr/app/raspirus/target/armv7-unknown-linux-gnueabihf/release/bundle/deb/raspirus_${{ env.VERSION }}_armhf.deb ./dist
#
# - name: Upload file to artifacts
# uses: actions/upload-artifact@v4
# with:
# name: raspirus_${{ env.VERSION }}_armhf_.deb
# path: ./dist/raspirus_${{ env.VERSION }}_armhf.deb

0 comments on commit 6ebda2f

Please sign in to comment.