Skip to content

Commit

Permalink
change to production
Browse files Browse the repository at this point in the history
  • Loading branch information
tadashi0713 committed Nov 18, 2024
1 parent 86b95d5 commit 1867e5e
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,26 @@ jobs:
with:
command: environment
image: ${{ env.ECR_REGISTRY }}/${{ env.REPOSITORY }}:${{ env.IMAGE_TAG }}
environment: aws-prod
organization: tadashinemoto567

build-push-dockerhub:
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- uses: docker/build-push-action@v6
with:
push: true
sbom: true
provenance: true
tags: ${{ env.DOCKERHUB_REPOSITORY }}:${{ env.IMAGE_TAG }}
- uses: docker/scout-action@v1
with:
command: environment
image: ${{ env.DOCKERHUB_REPOSITORY }}:${{ env.IMAGE_TAG }}
environment: production
organization: tadashinemoto567

# build-push-dockerhub:
# runs-on: ubuntu-latest
# steps:
# - uses: docker/setup-buildx-action@v3
# - uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_TOKEN }}
# - uses: docker/build-push-action@v6
# with:
# push: true
# sbom: true
# provenance: true
# tags: ${{ env.DOCKERHUB_REPOSITORY }}:${{ env.IMAGE_TAG }}
# - uses: docker/scout-action@v1
# with:
# command: environment
# image: ${{ env.DOCKERHUB_REPOSITORY }}:${{ env.IMAGE_TAG }}
# environment: production
# organization: tadashinemoto567
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ jobs:
with:
command: compare
image: ${{ env.AWS_REPOSITORY }}:${{ env.IMAGE_TAG }}
to-env: aws-prod
to-env: production
organization: tadashinemoto567

0 comments on commit 1867e5e

Please sign in to comment.