Skip to content

Commit

Permalink
Merge pull request #16 from rahulvk007/main
Browse files Browse the repository at this point in the history
Configure GitHub Actions for Docker image build and push to Altacee registry
  • Loading branch information
slipstream8125 authored Oct 26, 2024
2 parents 4edb9ee + 94e2116 commit 263b11c
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/docker.yml
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

0 comments on commit 263b11c

Please sign in to comment.