Skip to content

Update Dockerfile

Update Dockerfile #28

Workflow file for this run

name: Ubuntu Docker Image CI
on:
push:
branches: [ "master" ]
paths:
- ubuntu/Dockerfile
- .github/workflows/ubuntu.yml
jobs:
docker:
runs-on: ubuntu-latest
#runs-on: self-hosted
timeout-minutes: 4320 # 72h
strategy:
fail-fast: false
max-parallel: 1
matrix:
user: ["apnpucky"]
base: [ "ubuntu" ]
image: ["base", "apt","dev","pip","poetry","python","python-lhapdf","python-lhapdf-looptools"]
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Get current time
uses: josStorer/get-current-time@v2.0.2
id: current-time
with:
format: YYYYMMDDHHSS
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
config: .github/buildkitd.toml
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: ${{ matrix.base }}-${{ matrix.image }}
uses: docker/build-push-action@v3
with:
file: ubuntu/Dockerfile
platforms: linux/amd64 #,linux/arm/v7,linux/arm64/v8,linux/ppc64le,linux/riscv64 #,linux/s390x
push: true
target: ${{ matrix.image }}
tags: |
${{ matrix.user }}/${{ matrix.base }}-${{ matrix.image }}:latest
${{ matrix.user }}/${{ matrix.base }}-${{ matrix.image }}:${{ github.sha }}-latest
${{ matrix.user }}/${{ matrix.base }}-${{ matrix.image }}:${{ steps.current-time.outputs.formattedTime }}-latest