-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'StratOS-Linux:main' into main
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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 |