Create docker-image.yml
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
name: Docker Image CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "main" ]
|
||||
pull_request:
|
||||
branches: [ "main" ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
- name: Build the Docker image
|
||||
run: |
|
||||
docker build . -f Dockerfile -t fevirtus/virtus-bot:latest
|
||||
|
||||
- name: Push the image to Docker Hub
|
||||
run: |
|
||||
docker push fevirtus/virtus-bot:latest
|
||||
Reference in New Issue
Block a user