Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
naiba committed Jun 26, 2022
1 parent 249e897 commit 2ff5313
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/cross-compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ jobs:
args: --release --target=${{ matrix.target }}
- name: move target
run: |
mkdir -p target/release/${{ matrix.docker }}/
mv target/${{ matrix.target }}/release/${{ matrix.binary }} target/release/${{ matrix.docker }}/
mkdir -p action-release/${{ matrix.docker }}/
mv target/${{ matrix.target }}/release/${{ matrix.binary }} action-release/${{ matrix.docker }}/
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
path: target/release/${{ matrix.docker }}/${{ matrix.binary }}

path: action-release/
5 changes: 3 additions & 2 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@ on:
branches: [main]
types:
- completed
workflow_dispatch:

jobs:
docker-build-push:
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Log in to the GHCR
uses: docker/login-action@master
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN export DEBIAN_FRONTEND="noninteractive" && apt update && apt install -y ca-c
dpkg-reconfigure tzdata

WORKDIR /webapp
COPY ./target/release/$TARGETPLATFORM/naive ./naive
COPY ./artifact/$TARGETPLATFORM/naive ./naive
COPY ./migrations ./migrations
COPY ./resources ./resources
COPY ./templates ./templates
Expand Down

0 comments on commit 2ff5313

Please sign in to comment.