kopia lustrzana https://github.com/projecthorus/chasemapper
commit
3b02f751f2
|
@ -28,34 +28,20 @@ jobs:
|
||||||
- name: Setup Buildx
|
- name: Setup Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Cache Layers
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: /tmp/buildx-cache
|
|
||||||
key: buildx-cache-${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
buildx-cache-
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
if: github.event_name != 'pull_request'
|
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.repository_owner }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and Push Images
|
- name: Build and Push Images
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
platforms: linux/amd64, linux/386, linux/arm64, linux/arm/v6, linux/arm/v7
|
platforms: linux/amd64, linux/386, linux/arm64, linux/arm/v6, linux/arm/v7
|
||||||
cache-from: type=local,src=/tmp/buildx-cache
|
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
|
||||||
cache-to: type=local,dest=/tmp/buildx-cache-new,mode=max
|
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: ${{ steps.meta.outputs.tags }}
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|
||||||
- name: Move Cache
|
|
||||||
run: |
|
|
||||||
rm -rf /tmp/buildx-cache
|
|
||||||
mv /tmp/buildx-cache-new /tmp/buildx-cache
|
|
||||||
|
|
|
@ -8,7 +8,8 @@ RUN apt-get update && \
|
||||||
apt-get upgrade -y && \
|
apt-get upgrade -y && \
|
||||||
apt-get install -y \
|
apt-get install -y \
|
||||||
cmake \
|
cmake \
|
||||||
libgeos-dev && \
|
libgeos-dev \
|
||||||
|
libatlas-base-dev && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Copy in requirements.txt.
|
# Copy in requirements.txt.
|
||||||
|
@ -16,7 +17,7 @@ COPY requirements.txt /root/chasemapper/requirements.txt
|
||||||
|
|
||||||
# Install Python packages.
|
# Install Python packages.
|
||||||
RUN pip3 --no-cache-dir install --user --no-warn-script-location \
|
RUN pip3 --no-cache-dir install --user --no-warn-script-location \
|
||||||
--extra-index-url https://www.piwheels.org/simple \
|
--ignore-installed --no-binary numpy \
|
||||||
-r /root/chasemapper/requirements.txt
|
-r /root/chasemapper/requirements.txt
|
||||||
|
|
||||||
# Copy in chasemapper.
|
# Copy in chasemapper.
|
||||||
|
|
Ładowanie…
Reference in New Issue