Skip to content

Commit

Permalink
fix:change workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Luv7804 committed Aug 7, 2024
1 parent 35f88df commit be84699
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 163 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build and Deploy

on:
push:
branches:
- development

jobs:
build-and-push-docker-image:
name: Build and push a new docker image
runs-on: ubuntu-latest
steps:
- name: Checkout the source code from the Github repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
timeout-minutes: 5

- name: Create Tag
id: tag
run: echo "tag=frontend-${{ github.ref_name }}-$(git rev-parse --short HEAD)-$(date +%s)" >> $GITHUB_OUTPUT
timeout-minutes: 5

- name: Login to ECR
uses: docker/login-action@v3
with:
registry: ${{ secrets.AWS_ECR_REGISTRY }}
username: ${{ secrets.AWS_ECR_ACCESS_KEY_ID}}
password: ${{ secrets.AWS_ECR_SECRET_ACCESS_KEY }}
timeout-minutes: 5

- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile.local
push: true
tags: ${{ secrets.AWS_ECR_REGISTRY }}/${{ vars.AWS_ECR_REPOSITORY_APP }}:${{ steps.tag.outputs.tag }}
timeout-minutes: 5
61 changes: 0 additions & 61 deletions .github/workflows/codacy.yml

This file was deleted.

75 changes: 0 additions & 75 deletions .github/workflows/dev-branch-pr-deployment-pipeline.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/greetings.yml

This file was deleted.

File renamed without changes.

0 comments on commit be84699

Please sign in to comment.