Skip to content

Commit

Permalink
wip: update
Browse files Browse the repository at this point in the history
  • Loading branch information
ianlnf committed May 30, 2024
1 parent 01f16df commit 2a46a6f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,19 +58,22 @@ jobs:
id: login-pf-aws-ecr
uses: aws-actions/amazon-ecr-login@v1

- name: Build and push docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Build docker
if: github.ref == 'refs/heads/main'
run: |
pnpm nx affected --base=last-release -t docker --parallel=1
# - name: Push docker
# env:
# ECR_REGISTRY: ${{ steps.login-pf-aws-ecr.outputs.registry }}
# ECR_REPOSITORY: ${{secrets.AWS_ECR_REPO}}
# IMAGE_TAG: latest
# run: |
# docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
# docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Push docker
env:
ECR_REGISTRY: ${{ steps.login-pf-aws-ecr.outputs.registry }}
ECR_REPOSITORY: life-events-design-system
IMAGE_TAG: latest
run: |
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
- name: Tag last-release
if: github.ref == 'refs/heads/main'
Expand Down
6 changes: 2 additions & 4 deletions apps/docs/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@
},
"configurations": {
"dev": {
"tags": ["dev", "govie-ds-docs:latest"],
"push": true
"tags": ["dev", "govie-ds-docs:latest"]
},
"production": {
"tags": ["my.image-registry.com/govie-ds-docs:latest"],
"push": false
"tags": ["prod", "govie-ds-docs:latest"]
}
}
}
Expand Down

0 comments on commit 2a46a6f

Please sign in to comment.