Skip to content

Update from https://github.com/riazarbi/datasci-r-8020/commit/8abf5d7… #68

Update from https://github.com/riazarbi/datasci-r-8020/commit/8abf5d7…

Update from https://github.com/riazarbi/datasci-r-8020/commit/8abf5d7… #68

Workflow file for this run

name: docker_build
on:
workflow_dispatch:
push:
branches:
- 'focal'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Generate tag
id: gen_tag
run: |
TAG=$(printf '%(%Y%m%d%H%M%S)T\n' -1)
echo '::set-output name=tag::'$TAG
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: |
riazarbi/datasci-r-heavy:${{ fromJson(steps.gen_tag.outputs.tag) }}
riazarbi/datasci-r-heavy:focal