Create Docker workflow and Dockerfile for image build and push
All checks were successful
Push Docker image / build (push) Successful in 3m50s
All checks were successful
Push Docker image / build (push) Successful in 3m50s
This commit is contained in:
commit
050810404d
2 changed files with 27 additions and 0 deletions
25
.forgejo/workflows/push.yaml
Normal file
25
.forgejo/workflows/push.yaml
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Push Docker image
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: code.edgarpierre.fr
|
||||
username: ${{ vars.DOCKER_PUSH_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PUSH_PASSWORD }}
|
||||
-
|
||||
name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
-
|
||||
name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
push: true
|
||||
tags: code.edgarpierre.fr/edpibu/uv-act:${{ github.ref_name }}
|
2
Dockerfile
Normal file
2
Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
FROM ghcr.io/catthehacker/ubuntu:act-latest
|
||||
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
|
Loading…
Add table
Add a link
Reference in a new issue