Skip to content

replace ephemeral-storage by temp-pvc to avoid node saturation and ke… #10

replace ephemeral-storage by temp-pvc to avoid node saturation and ke…

replace ephemeral-storage by temp-pvc to avoid node saturation and ke… #10

name: Build and Publish Docker Image
on:
push:
branches:
- master
env:
DSS_VERSION: 13.3.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: dss-docker
push: true
tags: |
${{ secrets.DOCKER_USERNAME }}/dataiku:${{ env.DSS_VERSION }}
${{ secrets.DOCKER_USERNAME }}/dataiku:latest
build-args: |
dssVersion=${{ env.DSS_VERSION }}
- name: Post cache Docker layers
if: always()
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}