chore: add build actions
All checks were successful
Publish image / create-docker-images (push) Successful in 42s

This commit is contained in:
Alexander Navarro 2024-12-05 18:50:31 -03:00
parent e9d50af0ae
commit 2059de21da
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,27 @@
name: Publish image
on:
push:
workflow_dispatch:
jobs:
create-docker-images:
runs-on: host
steps:
- 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,linux/arm/v7
push: true
tags: |
git.alecodes.page/alecodes/page:latest
git.alecodes.page/alecodes/page:${{ github.sha }}