Skip to content

Merge pull request #78 from DataDog/TRAIN-1977-dashworkshop-fixes #27

Merge pull request #78 from DataDog/TRAIN-1977-dashworkshop-fixes

Merge pull request #78 from DataDog/TRAIN-1977-dashworkshop-fixes #27

Workflow file for this run

name: Frontend
on:
push:
branches: [ main ]
paths:
- services/frontend/**
workflow_dispatch:
branches: [ main ]
defaults:
run:
working-directory: frontend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to ECR
id: login-ecr
uses: docker/login-action@v3
with:
registry: public.ecr.aws
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./services/frontend
platforms: linux/arm64, linux/amd64
push: true
tags: ${{ secrets.PUBLIC_ECR_REGISTRY }}/storedog/frontend:latest