Skip to content

Commit

Permalink
Update build-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gwanryo committed Nov 26, 2023
1 parent fcd6e9f commit 606ac0d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
31 changes: 16 additions & 15 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,32 @@ jobs:
IMAGE_NAME: ${{ github.repository }}-${{ github.job }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3.0.3
uses: sigstore/cosign-installer@v3.2.0

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2.5.0
uses: docker/setup-buildx-action@v3.0.0

- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4.4.0
uses: docker/metadata-action@v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: ${{ github.job }}/
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -70,32 +70,32 @@ jobs:
IMAGE_NAME: ${{ github.repository }}-${{ github.job }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

- name: Install cosign
if: github.event_name != 'pull_request'
uses: sigstore/cosign-installer@v3.0.3
uses: sigstore/cosign-installer@v3.2.0

- name: Setup Docker buildx
uses: docker/setup-buildx-action@v2.5.0
uses: docker/setup-buildx-action@v3.0.0

- name: Log into registry ${{ env.REGISTRY }}
if: github.event_name != 'pull_request'
uses: docker/login-action@v2.1.0
uses: docker/login-action@v3.0.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_TOKEN }}

- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4.4.0
uses: docker/metadata-action@v5.0.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
id: build-and-push
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v5.1.0
with:
context: ${{ github.job }}/
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -117,11 +117,12 @@ jobs:
steps:
- name: Executing remote ssh commands
id: ssh
uses: appleboy/ssh-action@v0.1.10
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.OCI_HOST }}
username: ${{ secrets.OCI_USERNAME }}
key: ${{ secrets.OCI_KEY }}
command_timeout: 30m
script: cd ${{ github.event.repository.name }} && sudo ./deploy.sh

notify-success:
Expand All @@ -136,7 +137,7 @@ jobs:
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_ROLE_ID: ${{ secrets.DISCORD_ROLE_ID }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@0.3.2
with:
args: |
<@&{{ DISCORD_ROLE_ID }}>
Expand All @@ -156,7 +157,7 @@ jobs:
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_ROLE_ID: ${{ secrets.DISCORD_ROLE_ID }}
uses: Ilshidur/action-discord@master
uses: Ilshidur/action-discord@0.3.2
with:
args: |
<@&{{ DISCORD_ROLE_ID }}>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/routes/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
try {
document.execCommand('copy');
alert('Copied to clipboard.');
} catch (error) {
console.error(error);
} finally {
Expand Down

0 comments on commit 606ac0d

Please sign in to comment.