Files
shell-whats/.github/workflows/build.yml
T
rmcampos b63ad4ff40
Build and Push / build (push) Successful in 1m45s
chore: update workflow files to gitea (#2)
## What

- Closes #1

## Why

- Migrating from GitHub to Gitea

## Mood
<img width="200" src="https://media4.giphy.com/media/v1.Y2lkPTc5MGI3NjExdHc5MnJ2N2RpazVsYW1uZXBtZjJreGtmdDQ0cDM2M2R2bXMxZmh6YSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/lsJCkIKV6AT28/giphy.gif" />

Reviewed-on: #2
2026-06-16 21:03:15 +00:00

42 lines
963 B
YAML

name: Build and Push
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- '**.md'
env:
IMAGE: docker.io/rmcampos/shell-whats
jobs:
build:
runs-on: easynode-debian
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker Buildx
run: docker buildx inspect --bootstrap
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:${{ github.sha }}
cache-from: type=registry,ref=rmcampos/shell-whats:buildcache
cache-to: type=registry,ref=rmcampos/shell-whats:buildcache,mode=max