Skip to content

Bump ubuntu from noble-20241011 to noble-20241015 #229

Bump ubuntu from noble-20241011 to noble-20241015

Bump ubuntu from noble-20241011 to noble-20241015 #229

Workflow file for this run

name: Create and publish a Docker image
on:
push:
branches:
- main
tags:
- 'v*.*.*'
pull_request:
branches:
- main
env:
IMAGE_NAME: debmirror
NAMESPACE: iainlane
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
- name: Set up QEMU
uses: docker/[email protected]
with:
platforms: all
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/[email protected]
with:
images: ${{ env.NAMESPACE }}/${{ env.IMAGE_NAME }}
tags: |
type=edge,branch=${{ github.event.repository.default_branch }}
type=ref,event=branch
type=semver,pattern={{version}},prefix=v
type=semver,pattern={{major}}.{{minor}},prefix=v
type=semver,pattern={{major}},prefix=v
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
builder: ${{ steps.buildx.outputs.name }}
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}