chore: add repository config
Some checks failed
Publish image / build (push) Failing after 18s

This commit is contained in:
Alexander Navarro 2024-11-04 15:39:34 -03:00
parent 3beb696eb5
commit 5c845dd5f2
Signed by untrusted user who does not match committer: anavarro
GPG key ID: 6426043E9FA3E3B5
3 changed files with 184 additions and 0 deletions

View file

@ -0,0 +1,32 @@
name: Publish image
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: docker
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