mirror of https://github.com/MatrixTM/MHDDoS.git
fix docker image building
This commit is contained in:
parent
8b735cd512
commit
ac7ccbea2b
|
|
@ -1,2 +1,31 @@
|
||||||
- name: Build and push Docker images
|
name: Docker Image CI
|
||||||
uses: docker/build-push-action@v2.9.0
|
|
||||||
|
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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue