Moving container to its own directory; not just a nvim thing. Added a nightly workflow. Switched to tags trigger. (#14)
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 4m2s

Co-authored-by: Shaun Setlock <shaun@setlock.net>
Co-authored-by: Shaun Setlock <shaunsetlock@protonmail.com>
Reviewed-on: https://www.gitea.setlock.net/shaun/dotfiles/pulls/14
This commit was merged in pull request #14.
This commit is contained in:
2025-05-06 21:43:48 -04:00
parent f9616acc97
commit cc56ca800d
5 changed files with 60 additions and 23 deletions

View File

@@ -3,8 +3,10 @@ name: Build and Push Docker Image
on:
push:
branches:
- master
# branches:
# - master
tags:
- "v*"
workflow_dispatch:
@@ -34,9 +36,9 @@ jobs:
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: ./nvim/tools
context: ./tools
push: true
platforms: linux/amd64
tags: |
gitea.setlock.net/shaun/neovim:latest
gitea.setlock.net/shaun/neovim:${{ env.GIT_TAG }}
gitea.setlock.net/shaun/dev-container:latest
gitea.setlock.net/shaun/dev-container:${{ env.GIT_TAG }}

View File

@@ -0,0 +1,35 @@
# .gitea/workflows/docker-build-push.yml
name: Build and Push Docker Image
on:
schedule:
- cron: "0 2 * * *"
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: gitea.setlock.net
username: ${{ secrets.USER }}
password: ${{ secrets.TOKEN }}
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: ./tools
push: true
platforms: linux/amd64
tags: |
gitea.setlock.net/shaun/dev-container:nightly