Merge pull request #102 from hvalev/bookworm-migration #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
tags: | |
- '**' | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Free Disk Space | |
uses: ShubhamTatvamasi/free-disk-space-action@master | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get Version | |
id: get_version | |
uses: battila7/[email protected] | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
# - name: Cache Docker layers | |
# uses: actions/cache@v4 | |
# with: | |
# path: /tmp/.buildx-cache | |
# key: ${{ runner.os }}-buildx-${{ github.sha }} | |
# restore-keys: | | |
# ${{ runner.os }}-buildx- | |
- name: Available platforms | |
run: echo ${{ steps.buildx.outputs.platforms }} | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUBUNAME }} | |
password: ${{ secrets.DOCKERHUBTOKEN }} | |
- name: Build and push shiny | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
builder: ${{ steps.buildx.outputs.name }} | |
platforms: linux/arm/v7,linux/arm64,linux/amd64 | |
target: shiny | |
push: true | |
tags: | | |
hvalev/shiny-server-arm:${{ steps.get_version.outputs.version }} | |
hvalev/shiny-server-arm:latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Build and push shiny with devtools | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
builder: ${{ steps.buildx.outputs.name }} | |
platforms: linux/arm/v7,linux/arm64,linux/amd64 | |
target: shiny-with-devtools | |
push: true | |
tags: | | |
hvalev/shiny-server-arm:devtools-${{ steps.get_version.outputs.version }} | |
hvalev/shiny-server-arm:devtools-latest | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Docker Hub Description | |
uses: peter-evans/dockerhub-description@v4 | |
env: | |
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUBUNAME }} | |
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUBPWD }} | |
DOCKERHUB_REPOSITORY: hvalev/shiny-server-arm |