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
36 lines
826 B
YAML
36 lines
826 B
YAML
# .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
|