Skip to content

Commit

Permalink
task(fix): restore original workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aki263 authored Oct 16, 2024
1 parent 20bb902 commit 36985a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
build-image:
if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request' }}
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -46,14 +47,6 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Restore Docker cache
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and Push
uses: docker/build-push-action@v6
with:
Expand All @@ -65,13 +58,4 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
build-args: |
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Save Docker cache
if: always()
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
Binary file removed cmd/webhook/init/.DS_Store
Binary file not shown.

0 comments on commit 36985a2

Please sign in to comment.