Skip to content

docker

docker #13

Workflow file for this run

name: docker
on:
#push:
#schedule:
#- cron: "22 3 25 * *"
workflow_dispatch:
jobs:
docker:
runs-on: ubuntu-latest
name: docker
#runs-on: ${{ matrix.config.runs }}
#name: ${{ matrix.config.tag }}-${{ matrix.config.cpu }}
#strategy:
# fail-fast: false
# matrix:
# config:
# - { directory: focal, tag: '20.04', cpu: amd64, runs: ubuntu-latest }
# - { directory: jammy, tag: '22.04', cpu: amd64, runs: ubuntu-latest }
# - { directory: noble, tag: '24.04', cpu: amd64, runs: ubuntu-latest }
# - { directory: noble, tag: '24.04', cpu: arm64, runs: ubuntu-24.04-arm }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
no-cache: true
platforms: linux/amd64,linux/arm64
context: noble
tags: eddelbuettel/r-ubuntu:latest
#context: ${{ matrix.config.directory }}
#tags: rocker/r-ubuntu:${{ matrix.config.tag }},rocker/r-ubuntu:${{ matrix.config.directory }}