Ubuntu Noble Docker Image CI #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Ubuntu Noble Docker Image CI | |
# How to trigger this workflow | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'docker/ubuntu/noble/Dockerfile' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'docker/ubuntu/noble/Dockerfile' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
push_to_registry: | |
name: Build and push Ubuntu noble Docker images to Docker Hub | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Create and use a new builder | |
run: | | |
docker buildx create --name mybuilder --use | |
docker buildx inspect --bootstrap | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME}} | |
password: ${{ secrets.DOCKERHUB_PASSWD}} | |
- name: Extract noble metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: os369510/ubuntu-noble | |
- name: Build and push Ubuntu noble Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
file: docker/ubuntu/noble/Dockerfile | |
tags: os369510/ubuntu-noble:latest | |
platforms: linux/amd64,linux/arm64 |