Skip to content

Merge pull request #16 from UnitVectorY-Labs/dependabot/maven/com.goo… #44

Merge pull request #16 from UnitVectorY-Labs/dependabot/maven/com.goo…

Merge pull request #16 from UnitVectorY-Labs/dependabot/maven/com.goo… #44

name: Build and Push Development Docker Images
on:
push:
branches: [ "main" ]
jobs:
build-and-push:
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: docker-${{ matrix.profile }}
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- profile: memory
tag: memory
- profile: firestore
tag: firestore
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 }}-${{ matrix.tag }}:dev
build-args: |
LOCKER=${{ matrix.profile }}