|
|
@ -3,7 +3,7 @@ name: Build Docker Image
|
|
|
|
|
|
|
|
|
|
|
|
on:
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
branches: [ main, dev ]
|
|
|
|
branches: [ main ]
|
|
|
|
workflow_dispatch:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
@ -14,6 +14,9 @@ jobs:
|
|
|
|
- name: Copy Repo Files
|
|
|
|
- name: Copy Repo Files
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- id: sha
|
|
|
|
|
|
|
|
run: echo "::set-output name=sha::$(git describe --always --tags --dirty)"
|
|
|
|
|
|
|
|
|
|
|
|
- name: Set up QEMU
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
|
|
|
|
|
|
|
@ -32,6 +35,6 @@ jobs:
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: linux/amd64
|
|
|
|
platforms: linux/arm64, linux/arm, linux/amd64
|
|
|
|
push: true
|
|
|
|
push: true
|
|
|
|
tags: flotte-docker-registry.spdns.org/apollo-server:latest
|
|
|
|
tags: flotte-docker-registry.spdns.org/apollo-server:latest, flotte-docker-registry.spdns.org/apollo-server:${{ steps.sha.outputs.sha }}
|
|
|
|