Skip to content

Commit

Permalink
wip: add image build ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Jun 5, 2024
1 parent 7bd4d1b commit 12b013d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: docker
on:
push:
branches: main
pull_request:

jobs:
docker-buildx:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- uses: actions/checkout@v3

- name: Build and load
uses: docker/build-push-action@v5
with:
context: .
file: Containerfile
# test with nonstandard uid and gid
build-args: |
UID=1234
GID=1235
load: true
tags: l7/nvim:latest
# could enable push to gh registry
push: false
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 12b013d

Please sign in to comment.