Skip to content

Commit

Permalink
Fix build image from ci (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong authored Jul 13, 2021
1 parent fe146a4 commit 4fe2a3a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: true

jobs:
build:
buildx:

runs-on: self-hosted

Expand All @@ -29,13 +29,15 @@ jobs:
submodules: recursive
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
with:
install: true
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
${{ runner.os }}-buildx
- name: Add SSH key
uses: webfactory/ssh-agent@v0.5.2
with:
Expand All @@ -57,8 +59,9 @@ jobs:
BUILD_DATE=${{ github.event.release.published_at }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
ssh: default
- uses: 8398a7/action-slack@v3
if: always()
if: startsWith(github.ref, 'refs/tags/v')
with:
status: ${{ job.status }}
fields: repo,author,eventName,workflow,ref,commit
Expand Down

0 comments on commit 4fe2a3a

Please sign in to comment.