Skip to content

Build docker images #29

Build docker images

Build docker images #29

Workflow file for this run

name: Build docker images
on:
workflow_dispatch:
repository_dispatch:
types: [build_image]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Log in to GHCR
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Aliyun Container Registry
uses: docker/login-action@v2
with:
registry: registry.cn-hangzhou.aliyuncs.com
username: ${{ secrets.ALIYUN_USERNAME }}
password: ${{ secrets.ALIYUN_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
push: true
context: "./docker/images/server"
tags: |
ghcr.io/zhzxdev/aoi-server:latest
registry.cn-hangzhou.aliyuncs.com/aoi-js/server:latest