Skip to content

Commit

Permalink
chore(build): turn on caching
Browse files Browse the repository at this point in the history
  • Loading branch information
alextes committed Sep 1, 2023
1 parent 46cacdc commit 13a48cc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,30 @@ name: Build and Push Docker Image
on:
push:
branches:
- "main"
- main

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: blombern
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract short SHA
run: echo "SHORT_SHA=$(echo ${{ github.sha }} | cut -c 1-7)" >> $GITHUB_ENV

- name: Build and push
uses: docker/build-push-action@v4
with:
Expand All @@ -30,3 +35,5 @@ jobs:
tags: |
ultrasoundorg/mev-analysis:${{ env.SHORT_SHA }}
ultrasoundorg/mev-analysis:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 13a48cc

Please sign in to comment.