Skip to content

build-latest

build-latest #201

Workflow file for this run

name: "build-latest"
on:
workflow_dispatch:
push:
branches:
- "main"
- "master"
paths:
- "src/**"
pull_request:
branches:
- "main"
- "master"
paths:
- "src/Dockerfile*"
- "src/requirements.txt"
jobs:
docker_buildx_debian:
runs-on: ubuntu-latest
timeout-minutes: 210
steps:
- name: Run Docker on tmpfs
uses: JonasAlfredsson/[email protected]
with:
tmpfs_size: 7
swap_size: 9
- name: Perform setup steps
uses: JonasAlfredsson/checkout-qemu-buildx@v2
with:
should_login: ${{ github.event_name != 'pull_request' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push latest Debian image
uses: docker/[email protected]
with:
context: ./src
file: ./src/Dockerfile
platforms: |
linux/amd64
linux/386
linux/arm64
linux/arm/v7
push: ${{ github.event_name != 'pull_request' }}
tags: jonasal/nginx-certbot:latest
docker_buildx_alpine:
runs-on: ubuntu-latest
timeout-minutes: 100
steps:
- name: Run Docker on tmpfs
uses: JonasAlfredsson/[email protected]
with:
tmpfs_size: 7
swap_size: 9
- name: Perform setup steps
uses: JonasAlfredsson/checkout-qemu-buildx@v2
with:
should_login: ${{ github.event_name != 'pull_request' }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push latest Alpine image
uses: docker/[email protected]
with:
context: ./src
file: ./src/Dockerfile-alpine
platforms: |
linux/amd64
linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: jonasal/nginx-certbot:latest-alpine