Skip to content

Docker Image CI

Docker Image CI #31

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
workflow_run:
workflows: [Test]
branches: [main]
types:
- completed
jobs:
build:
name: Build
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-qemu-action@v3
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/polinetworkorg/admin:latest