boxes/.forgejo/workflows/publish.yaml
aleidk bc3826c5ee
Some checks failed
Publish image / build (push) Failing after 5s
chore: add repository config
2024-11-04 16:41:06 -03:00

32 lines
788 B
YAML

name: Publish image
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: host
steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.alecodes.page
username: ${{ vars.CONTAINER_REGISTRY_USER }}
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
platforms: linux/amd64,linux/arm64
push: true
context: boxes/devbox
tags: |
git.alecodes.page/alecodes/devbox:latest