Skip to content

Merge pull request #17 from slipstream8125/main #2

Merge pull request #17 from slipstream8125/main

Merge pull request #17 from slipstream8125/main #2

Workflow file for this run

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