Merge pull request #17 from slipstream8125/main #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Docker Image | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up Docker Buildx (optional, for multi-platform builds) | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
# Log in to DockerHub (optional, if pushing to DockerHub) | |
- name: Log in to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
registry: registry.altacee.com | |
username: ${{ secrets.ACR_USERNAME }} | |
password: ${{ secrets.ACR_PASSWORD }} | |
# Build the Docker image | |
- name: Build Docker image | |
run: | | |
docker build -t registry.altacee.com/stratos/docs:latest . | |
# Push the Docker image (optional, if you want to push to DockerHub) | |
- name: Push Docker image | |
run: | | |
docker push registry.altacee.com/stratos/docs:latest |