Skip to content

Docker Image CI

Docker Image CI #66

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
workflow_run:
workflows: ["Dependabot auto-merge"]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check-out
uses: actions/checkout@master
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
with:
platforms: linux/amd64,linux/arm64
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: install build tools
run: pip install wheel
- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
flavor: |
latest=true
tags: |
type=raw,{{sha}}
- name: build & push image (flask-socketio_base:latest)
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
tags: ${{ steps.meta.outputs.tags }}