Skip to content

feat: Add lib cost study survey to production (#1165) #66

feat: Add lib cost study survey to production (#1165)

feat: Add lib cost study survey to production (#1165) #66

Workflow file for this run

name: Build Docker Image
on:
push:
tags: [ v*.*.* ]
jobs:
docker-build:
name: Build Docker Image
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@154c24e1f33dbb5865a021c99f1318cfebf27b32
- name: Cache Docker layers
uses: actions/cache@26968a09c0ea4f3e233fdddbafd1166051a095f6
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to DockerHub
uses: docker/login-action@f3364599c6aa293cdc2b8391b1b56d0c30e45c8a
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set Docker tags
id: docker_meta
uses: crazy-max/ghaction-docker-meta@9ae6899cfa6d691ad29d6fc0a228f276a16f5d44
with:
images: uclalibrary/ursus
tag-semver: |
{{version}}
{{major}}.{{minor}}
{{major}}
- name: Build and push to Dockerhub
uses: docker/build-push-action@9379083e426e2e84abb80c8c091f5cdeb7d3fd7a
with:
push: true
tags: ${{ steps.docker_meta.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache-new
- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache