added workflow for building image
Some checks failed
Build and Push Docker Image / build (push) Failing after 53s
Some checks failed
Build and Push Docker Image / build (push) Failing after 53s
This commit is contained in:
parent
c269ada0c0
commit
e06e4efbf8
37
.gitea/workflows/build-image.yaml
Normal file
37
.gitea/workflows/build-image.yaml
Normal file
@ -0,0 +1,37 @@
|
||||
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker meta
|
||||
id: meta
|
||||
uses: docker/metadata-action@v5
|
||||
with:
|
||||
images: gitea.rannes.dev/rannes.dev/resume
|
||||
tags: |
|
||||
type=sha,prefix={{branch}}-
|
||||
type=raw,value=latest
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: gitea.rannes.dev
|
||||
username: ${{ secrets.REGISTRY_USER }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
Loading…
x
Reference in New Issue
Block a user