2024-04-05 05:30:21 +00:00
|
|
|
name: Create Docker Image
|
|
|
|
run-name: ${{ gitea.actor }} Building Docker Image 🚀
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build Docker Image
|
2024-04-05 05:49:50 +00:00
|
|
|
runs-on: docker-x86
|
2024-04-05 05:30:21 +00:00
|
|
|
steps:
|
|
|
|
- name: Environment
|
|
|
|
run: |
|
2024-04-05 05:36:05 +00:00
|
|
|
echo "++ Environment" && env
|
|
|
|
echo "++ PWD" && pwd
|
|
|
|
echo "++ ls" && ls -al
|
2024-04-05 05:30:21 +00:00
|
|
|
|
|
|
|
- name: Checkout Code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
2024-04-05 05:49:50 +00:00
|
|
|
- name: Environment part 2
|
|
|
|
run: |
|
|
|
|
echo "++ Environment" && env
|
|
|
|
echo "++ PWD" && pwd
|
|
|
|
echo "++ ls" && ls -al
|
|
|
|
|
2024-04-05 05:30:21 +00:00
|
|
|
# name: Set up Docker Buildx
|
|
|
|
# uses: https://github.com/docker/setup-buildx-action@v3
|
|
|
|
# with:
|
|
|
|
# config-inline: |
|
|
|
|
# [registry."<my-private-unsecure-git-repository-ip-address>:5000"]
|
|
|
|
# http = true
|
|
|
|
# insecure = true
|
|
|
|
|
|
|
|
- name: Build and push Docker image
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
push: true
|
|
|
|
tags: "${{gitea.server}}/${{gitea.domain}}:latest"
|