mirror of
https://github.com/MatrixTM/MHDDoS.git
synced 2024-11-16 19:56:37 +08:00
32 lines
769 B
YAML
32 lines
769 B
YAML
name: Docker Image CI
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "feature/dockerfile" ]
|
|
|
|
jobs:
|
|
|
|
push_image:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v1
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v1
|
|
|
|
- name: Log in to the Container registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ghcr.io/mhprodev/mhddos:${{ github.sha }},ghcr.io/mhprodev/mhddos:latest
|