2 Commits

Author SHA1 Message Date
Shaun Setlock
b82db31e2c Removed unnecessary branch name in Actions workflow. 2025-05-03 16:56:42 -04:00
Shaun Setlock
5add7af8b0 Created Actions workflow for nvim container build. 2025-05-03 16:42:24 -04:00

View File

@@ -5,8 +5,12 @@ on:
push: push:
branches: branches:
- master - master
tags:
- "v*" # triggers when you push a tag like v1.0.0
paths:
- "**/Dockerfile"
workflow_dispatch: workflow_dispatch: # manual run button
jobs: jobs:
build-and-push: build-and-push:
@@ -22,9 +26,9 @@ jobs:
- name: Log in to Gitea Container Registry - name: Log in to Gitea Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: gitea.setlock.net registry: gitea.example.com
username: ${{ secrets.USER }} username: ${{ secrets.GITEA_USERNAME }}
password: ${{ secrets.TOKEN }} password: ${{ secrets.GITEA_TOKEN }}
- name: Extract Tag Name (if any) - name: Extract Tag Name (if any)
id: get_tag id: get_tag
@@ -36,17 +40,7 @@ jobs:
with: with:
context: ./nvim/tools context: ./nvim/tools
push: true push: true
platforms: linux/amd64 platforms: linux/amd64,linux/arm64
tags: | tags: |
gitea.setlock.net/shaun/neovim:latest https://gitea.setlock.net/shaun/dotfiles:latest
gitea.setlock.net/shaun/neovim:${{ env.GIT_TAG }} https://gitea.setlock.net/shaun/dotfiles:${{ env.GIT_TAG }}
#
# - name: Build and Push Docker Image
# uses: docker/build-push-action@v5
# with:
# context: ./nvim/tools
# push: true
# platforms: linux/arm64
# tags: |
# gitea.setlock.net/shaun/neovim:latest
# gitea.setlock.net/shaun/neovim:${{ env.GIT_TAG }}