This commit is contained in:
parent
3beb696eb5
commit
c7ad505d0f
3 changed files with 184 additions and 0 deletions
32
.forgejo/workflows/publish.yaml
Normal file
32
.forgejo/workflows/publish.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue