Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Add sample application core structure for business #24

Add sample application core structure for business

Add sample application core structure for business #24

Workflow file for this run

# .github/workflows/docker-publish.yml
name: Docker build and push to Amazon ECR
on:
push:
branches: [ develop ] # change to your branch name
workflow_dispatch:
env:
ECR_REGISTRY: 484009068469.dkr.ecr.eu-central-1.amazonaws.com
ECR_REPOSITORY: ba7besh
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_ACCESS_KEY_SECRET }}
aws-region: eu-central-1
- name: Login to Amazon ECR
uses: aws-actions/amazon-ecr-login@v1
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: ./backend
push: true
tags: |
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ github.sha }}
${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:latest