5 Commits

Author SHA1 Message Date
6b7ebb1f42 Merge pull request 'Modified triggers.' (#5) from feature/update_CICD_trigger into master
Reviewed-on: https://www.gitea.setlock.net/shaun/dotfiles/pulls/5
2025-05-03 19:54:27 -04:00
Shaun Setlock
35628b774f Modified triggers. 2025-05-03 19:53:44 -04:00
Shaun Setlock
30ed4f77f6 Simplifying triggers in Actions workflow.
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m53s
2025-05-03 17:08:44 -04:00
0635cad22e feature/implement_CI_CD_dotfiles#2 (#4)
Co-authored-by: Shaun Setlock <shaun@setlock.net>
Reviewed-on: https://www.gitea.setlock.net/shaun/dotfiles/pulls/4
2025-05-03 17:01:08 -04:00
bf228bf176 Created Actions workflow for nvim container build. (#3)
Co-authored-by: Shaun Setlock <shaun@setlock.net>
Reviewed-on: https://www.gitea.setlock.net/shaun/dotfiles/pulls/3
2025-05-03 16:46:11 -04:00

View File

@@ -0,0 +1,44 @@
# .gitea/workflows/docker-build-push.yml
name: Build and Push Docker Image
on:
push:
branches:
- master
paths:
- "nvim/**"
workflow_dispatch: # manual run button
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.example.com
username: ${{ secrets.USER }}
password: ${{ secrets.TOKEN }}
- name: Extract Tag Name (if any)
id: get_tag
run: |
echo "GIT_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build and Push Docker Image
uses: docker/build-push-action@v5
with:
context: ./nvim/tools
push: true
platforms: linux/amd64,linux/arm64
tags: |
https://gitea.setlock.net/shaun/dotfiles:latest
https://gitea.setlock.net/shaun/dotfiles:${{ env.GIT_TAG }}