Skip to content

adding nfs-common

adding nfs-common #4

name: Build Ubuntu 22.04 image
on:
#schedule:
# - cron: "0 5 * * 2"
push:
branches: [ main ]
tags:
- 'v*'
paths:
- container/ubuntu-22.04.Dockerfile
workflow_dispatch:
jobs:
build_and_push_image:
name: Build and push image
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
with:
images: |
ghcr.io/dingp/ubuntu
tags: |
type=raw,value=22.04-debug
- name: Build and push Docker images
uses: docker/build-push-action@v3
with:
context: .
push: true
file: ./container/ubuntu-22.04.Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}