Some checks failed
Build and Push Docker Image to Gitea Registry / build-and-push (push) Failing after 1m21s
39 lines
1.0 KiB
YAML
39 lines
1.0 KiB
YAML
name: Build and Push Docker Image to Gitea Registry
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Step 1: Checkout repository
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
# Step 2: Set up Docker Buildx
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
# Step 3: Log in to Gitea Container Registry
|
|
- name: Log in to Gitea Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: git.3t.network
|
|
username: alex
|
|
password: ${{ secrets.PACKAGEKEY }}
|
|
|
|
# Step 4: Build and push Docker image
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: |
|
|
git.3t.network/${{ github.repository }}/3t-fontpage:${{ github.sha }}
|
|
git.3t.network/${{ github.repository }}/3t-fontpage:latest
|
|
cache-from: type=gha
|
|
cache-to: type=gha,mode=max |