added .env readability
This commit is contained in:
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@@ -46,10 +46,6 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
|
||||
- name: Clean up containers
|
||||
run: |
|
||||
docker ps -aq | xargs docker rm -f
|
||||
|
||||
native-build:
|
||||
name: Native Linux Build
|
||||
needs: detect-project
|
||||
@@ -88,10 +84,6 @@ jobs:
|
||||
name: linux-binary
|
||||
path: ${{ needs.detect-project.outputs.project-dir }}/target/x86_64-unknown-linux-gnu/release/${{ needs.detect-project.outputs.project-name }}
|
||||
|
||||
- name: Clean up containers
|
||||
run: |
|
||||
docker ps -aq | xargs docker rm -f
|
||||
|
||||
windows-cross:
|
||||
name: Windows Cross-Compile
|
||||
needs: detect-project
|
||||
@@ -129,10 +121,6 @@ jobs:
|
||||
name: windows-binary
|
||||
path: ${{ needs.detect-project.outputs.project-dir }}/target/x86_64-pc-windows-gnu/release/${{ needs.detect-project.outputs.project-name }}.exe
|
||||
|
||||
- name: Clean up containers
|
||||
run: |
|
||||
docker ps -aq | xargs docker rm -f
|
||||
|
||||
docker-build:
|
||||
name: Build Linux Docker Image
|
||||
needs: [native-build, windows-cross, detect-project]
|
||||
@@ -175,8 +163,4 @@ jobs:
|
||||
echo "Tagging Linux Docker image"
|
||||
docker tag ${{ env.IMAGE_NAME }}:linux-${{ env.TAG }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
||||
echo "Pushing Linux Docker image to registry: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}"
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
||||
|
||||
- name: Clean up containers
|
||||
run: |
|
||||
docker ps -aq | xargs docker rm -f
|
||||
docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:linux-${{ env.TAG }}
|
Reference in New Issue
Block a user