MHDDoS/.github/workflows/docker-image.yml
2022-08-07 15:20:45 +02:00

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@v3
- 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@v3
with:
context: .
push: true
tags: ghcr.io/mhprodev/mhddos:${{ github.sha }},ghcr.io/mhprodev/mhddos:latest