mirror of
https://github.com/farcasclaudiu/minecraft-btw.git
synced 2026-06-28 23:01:49 +03:00
Update docker-image.yml
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Docker Image CI
|
name: Build and Publish Docker Image CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -15,4 +15,12 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Build the Docker image
|
- name: Build the Docker image
|
||||||
run: docker build . --file Dockerfile --tag clodyx/btw-server:latest
|
run: docker build -t ${{ secrets.DOCKER_USERNAME }}/${{ secrets.IMAGE_NAME }}:latest .
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Push Docker Image to Docker Hub
|
||||||
|
run: |
|
||||||
|
docker push ${{ secrets.DOCKER_USERNAME }}/${{ secrets.IMAGE_NAME }}:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user