Skip to content

Merge pull request #451 from ttngu207/dev_queriable_in_roi_time #148

Merge pull request #451 from ttngu207/dev_queriable_in_roi_time

Merge pull request #451 from ttngu207/dev_queriable_in_roi_time #148

name: Aeon Mecha Container Environment
on:
push:
branches: [datajoint_pipeline]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get previous tag
id: previoustag
uses: WyriHaximus/github-action-get-previous-tag@v1
with:
fallback: v0.0.0a
- name: Assign environment variables
run: |
echo "repository_lower=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >>$GITHUB_ENV
echo "image_build_date=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >>$GITHUB_ENV
- name: Setup QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: linux/amd64,linux/arm64
- name: Setup Docker buildx
id: buildx
uses: docker/setup-buildx-action@v1
with:
install: true
driver: docker-container
driver-opts: |
image=moby/buildkit:buildx-stable-1
buildkitd-flags: --debug
config-inline: |
[worker.oci]
max-parallelism = 2
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
no-cache: true
build-args: |
IMAGE_CREATED=${{ env.image_build_date }}
IMAGE_VERSION=${{ steps.previoustag.outputs.tag }}
context: .
file: docker/image/Dockerfile
# platforms: linux/arm64,linux/amd64
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ env.repository_lower }}:latest
ghcr.io/${{ env.repository_lower }}:${{ steps.previoustag.outputs.tag }}
- name: Image digest
run: |
echo ${{ steps.docker_build.outputs.digest }}
docker system df
docker images -a