[docker/ubuntu/f,j/Dockerfile] remove Canonical tools #22
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 Focal Docker Image CI | |
# How to trigger this workflow | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'docker/ubuntu/focal/Dockerfile' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'docker/ubuntu/focal/Dockerfile' | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
push_to_registry: | |
name: Build and push Ubuntu focal 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 focal metadata (tags, labels) for Docker | |
id: meta | |
uses: docker/metadata-action@v3 | |
with: | |
images: os369510/ubuntu-focal | |
- name: Build and push Ubuntu focal Docker image | |
uses: docker/build-push-action@v2 | |
with: | |
context: . | |
push: true | |
file: docker/ubuntu/focal/Dockerfile | |
tags: os369510/ubuntu-focal:latest | |
platforms: linux/amd64,linux/arm64 |