-
Notifications
You must be signed in to change notification settings - Fork 3
37 lines (37 loc) · 1.13 KB
/
build-geo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: build-geo
on:
workflow_call:
concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch }}
cancel-in-progress: true
jobs:
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
env:
IMAGE_NAME: ghcr.io/eukarya-inc/plateau-view-3.0/plateauview-geo:latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build and load docker image
uses: docker/build-push-action@v3
with:
context: ./geo
platforms: linux/amd64
load: true
tags: ${{ env.IMAGE_NAME }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: false
- name: Save docker image
run: docker save ${{ env.IMAGE_NAME }} | gzip > plateauview-geo.tar.gz
- name: Save image to artifact
uses: actions/upload-artifact@v3
with:
name: plateauview-geo
path: plateauview-geo.tar.gz
if-no-files-found: error