Skip to content

Update build-ubuntu-latest.yml #10

Update build-ubuntu-latest.yml

Update build-ubuntu-latest.yml #10

Workflow file for this run

name: CI to Docker
on:
push:
branches: [ master ]
paths:
- '**.c'
- '**.h'
- '**.sh'
- 'Dockerfile'
- '.github/workflows/*'
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/towaywei/msd_lite:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7