[F] Try to fix github actions
This commit is contained in:
@@ -23,14 +23,16 @@ jobs:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Build rust
|
||||
working-directory: backend
|
||||
run: cargo build --release --verbose
|
||||
run: |
|
||||
mkdir /tmp/tmp
|
||||
cp -r ./backend /tmp/tmp
|
||||
rm -rf .*
|
||||
cp -r /tmp/tmp/backend/* .
|
||||
cargo build --release --verbose
|
||||
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
working-directory: backend
|
||||
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
working-directory: backend
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
@@ -38,7 +40,6 @@ jobs:
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract Docker metadata
|
||||
working-directory: backend
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
@@ -47,7 +48,6 @@ jobs:
|
||||
- name: Build and push Docker image
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v4
|
||||
working-directory: backend
|
||||
with:
|
||||
context: .
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
|
||||
Reference in New Issue
Block a user