Skip to content

Commit

Permalink
Test 03
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhei2023 committed Jul 8, 2024
1 parent 380be80 commit d9622da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/infra-frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Log in to Docker Hub
uses: docker/login-action@v2
Expand All @@ -23,8 +28,7 @@ jobs:
- name: Build and push Docker images
run: |
DOCKER_IMAGE_TAG=frontend-v0.0.3-${{ github.run_number }}
docker build -t davidhei/netflix:${DOCKER_IMAGE_TAG} --push .
docker buildx build --platform linux/amd64,linux/arm64 -t davidhei/netflix:${DOCKER_IMAGE_TAG} --push .
- name: Checkout infrastructure repo
uses: actions/checkout@v3
with:
Expand All @@ -36,12 +40,11 @@ jobs:
run: |
cd ./NetflixInfra/NetflixFrontend
sed -i 's|image: .*$|image: davidhei/netflix:frontend-v0.0.3-${{ github.run_number }}|' frontend.yaml
- name: Commit and Push changes
run: |
cd ./NetflixInfra
git config user.email "${{ secrets.GIT_USER_EMAIL }}"
git config user.name "${{ secrets.GIT_USER_NAME }}"
git add .
git commit -m "Update NetflixFrontend image to frontend-v0.0.3-${{ github.run_number }}"
git push
git push

0 comments on commit d9622da

Please sign in to comment.