Skip to content

fixed server .gitignore and removed files that should not be in git #18

fixed server .gitignore and removed files that should not be in git

fixed server .gitignore and removed files that should not be in git #18

Workflow file for this run

name: Build, Test, and Push Docker Images
on:
push:
branches:
- main
jobs:
build-test-push:
runs-on: ubuntu-latest
env:
DOCKER_USER: adenholm
BACKEND_IMAGE: adenholm/heap-recipes-backend
FRONTEND_IMAGE: adenholm/heap-recipes-frontend
SHA_TAG: ${{ github.sha }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Docker login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push backend (multi-arch)
uses: docker/build-push-action@v6
with:
context: ./server
file: ./server/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.BACKEND_IMAGE }}:latest
${{ env.BACKEND_IMAGE }}:${{ env.SHA_TAG }}
- name: Build and push frontend (multi-arch)
uses: docker/build-push-action@v6
with:
context: ./client
file: ./client/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
${{ env.FRONTEND_IMAGE }}:latest
${{ env.FRONTEND_IMAGE }}:${{ env.SHA_TAG }}