chore: Update Dockerfile to remove unnecessary SSH server configuration
This commit is contained in:
@@ -0,0 +1,36 @@
|
|||||||
|
name: Build and Push Docker Images
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'Docker/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-push:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log in to Docker Hub
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and Push Docker images
|
||||||
|
env:
|
||||||
|
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME }}
|
||||||
|
run: |
|
||||||
|
for dir in Docker/*; do
|
||||||
|
if [ -d "$dir" ]; then
|
||||||
|
image_name=$(basename "$dir")
|
||||||
|
version=$(cat "$dir/version")
|
||||||
|
docker build -t $DOCKER_HUB_USERNAME/$image_name:$version $dir
|
||||||
|
docker push $DOCKER_HUB_USERNAME/$image_name:$version
|
||||||
|
fi
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user