Skip to content

Update gdal base image to full version to include all drivers and upd… #7

Update gdal base image to full version to include all drivers and upd…

Update gdal base image to full version to include all drivers and upd… #7

name: Build and Push Dev
on:
workflow_dispatch:
push:
paths:
- 'processing_env/**'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./processing_env
push: true
tags: ghcr.io/${{ github.repository }}/processing_env-dev:${{ github.sha }}
platforms: linux/amd64,linux/arm64
target: dev
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache