Skip to content

Merge pull request #2 from UnitVectorY-Labs/dependabot/maven/org.spri… #7

Merge pull request #2 from UnitVectorY-Labs/dependabot/maven/org.spri…

Merge pull request #2 from UnitVectorY-Labs/dependabot/maven/org.spri… #7

name: Build and Push Development Docker Image
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set lowercase repository name
run: |
echo "REPO_LC=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ env.REPO_LC }}:dev