Skip to content

Commit

Permalink
Add workflow_dispatch to deploy job (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdeme authored Jul 3, 2024
1 parent f145771 commit 1489e87
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build the ${{ matrix.folder }} image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ${{ matrix.folder }}
build-args: |
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
branches: ["main", "future"]
schedule:
- cron: '20 8 * * 1'
workflow_dispatch:

env:
AWS_REGION: "us-east-1"
Expand Down Expand Up @@ -58,7 +59,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push the image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: base
platforms: linux/amd64,linux/arm64
Expand Down Expand Up @@ -101,7 +102,7 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push the image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
build-args: |
REPOSITORY_BASE_PATH=${{ secrets.PUBLIC_RUNNER_ANSIBLE_ECR_REPOSITORY_URL }}
Expand Down Expand Up @@ -145,13 +146,12 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and push the image
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
build-args: |
REPOSITORY_BASE_PATH=${{ secrets.PUBLIC_RUNNER_ANSIBLE_ECR_REPOSITORY_URL }}
context: aws
platforms: linux/amd64,linux/arm64
push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/future' }}
tags: |
${{ secrets.PUBLIC_RUNNER_ANSIBLE_ECR_REPOSITORY_URL_GCP }}:${{ github.ref == 'refs/heads/main' && 'latest' || 'future' }}
${{ secrets.PUBLIC_RUNNER_ANSIBLE_ECR_REPOSITORY_URL_GCP }}:${{ github.ref == 'refs/heads/main' && 'latest' || 'future' }}
2 changes: 1 addition & 1 deletion .github/workflows/prod-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@main

- name: Create Pull Request
uses: vsoch/pull-request-action@1.0.22
uses: vsoch/pull-request-action@1.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PASS_IF_EXISTS: true
Expand Down

0 comments on commit 1489e87

Please sign in to comment.