13 Commits

Author SHA1 Message Date
ecenshu 53ba636258 At end maybe?
Build & Push Docker image / build-and-push (push) Failing after 5m14s
ci / build_linux (push) Has been cancelled
2025-11-07 22:23:45 +10:30
ecenshu a25f5f602e Hardcodepath
Build & Push Docker image / build-and-push (push) Failing after 1m50s
ci / build_linux (push) Has been cancelled
2025-11-07 22:17:31 +10:30
ecenshu b9370eb2d5 pathing problem?
Build & Push Docker image / build-and-push (push) Failing after 1m49s
ci / build_linux (push) Failing after 1m38s
2025-11-07 22:06:25 +10:30
ecenshu 7c6fba9b3f More copy pasta
Build & Push Docker image / build-and-push (push) Failing after 1m50s
ci / build_linux (push) Failing after 1m56s
2025-11-07 21:57:44 +10:30
ecenshu 4eb8324056 Vars instead of env
Build & Push Docker image / build-and-push (push) Failing after 1m49s
ci / build_linux (push) Failing after 1m34s
2025-11-07 21:50:27 +10:30
ecenshu 6cb78c91fa Use ENV for tags instead of SECRETS
Build & Push Docker image / build-and-push (push) Failing after 1m54s
ci / build_linux (push) Failing after 1m43s
2025-11-07 21:46:04 +10:30
ecenshu a9184acd23 Shell to lowercase
Build & Push Docker image / build-and-push (push) Failing after 1m57s
ci / build_linux (push) Failing after 1m32s
2025-11-07 21:40:17 +10:30
ecenshu fae1979e04 Tabs
Build & Push Docker image / build-and-push (push) Failing after 40s
ci / build_linux (push) Failing after 1m13s
2025-11-07 21:31:19 +10:30
ecenshu 36f2f0c2f9 BuildX doesn't like camelcase tags 2025-11-07 21:24:12 +10:30
ecenshu 35d4eccdfd Remove demo
Build & Push Docker image / build-and-push (push) Failing after 1m46s
ci / build_linux (push) Failing after 1m32s
Correct the tags to align with Gitea Repo expected tags
2025-11-07 21:19:38 +10:30
ecenshu a81f67536f ci copy pasta error
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
Build & Push Docker image / build-and-push (push) Failing after 1m55s
ci / build_linux (push) Failing after 1m32s
2025-11-07 20:50:20 +10:30
ecenshu ce68860175 First attempt with workflows
ci / tsan (C++17, tsan) (push) Waiting to run
ci / ubsan (C++17, ubsan) (push) Waiting to run
ci / results (push) Blocked by required conditions
Build & Push Docker image / build-and-push (push) Has been cancelled
ci / g++11.3.0 (C++17, Debug) (push) Has been cancelled
ci / g++12.3.0 (C++20, Debug) (push) Has been cancelled
ci / g++13.3.0 (C++20, Debug) (push) Has been cancelled
ci / g++14.3.0 (C++20, Debug) (push) Has been cancelled
ci / g++9.4.0 (C++17, Debug) (push) Has been cancelled
Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
ci / clang20 (C++17, Debug) (push) Failing after 3m29s
ci / g++10.3.0 (C++17, Debug) (push) Has been cancelled
ci / clang15 (C++17, Debug) (push) Failing after 54s
ci / clang17 (C++17, Debug) (push) Failing after 54s
ci / clang18 (C++17, Debug) (push) Failing after 52s
ci / clang19 (C++17, Debug) (push) Failing after 53s
ci / g++15 (C++17, Debug) (push) Failing after 50s
ci / clang20 (C++17, Release) (push) Failing after 52s
ci / g++15 (C++17, Release) (push) Failing after 51s
ci / asan (C++17, asan) (push) Failing after 50s
2025-11-07 20:43:12 +10:30
ecenshu becc41a5f0 Testing actions
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m29s
2025-11-04 08:35:55 +10:30
2 changed files with 141 additions and 0 deletions
+100
View File
@@ -0,0 +1,100 @@
name: Build & Push Docker image
on:
# Trigger on pushes to main or release branches, and on manual workflow dispatch
push:
branches:
- main
- 'release/**'
- 'beta/**'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
environment: production
steps:
- name: Convert to lowercase
id: github_repository_to_lowercase
run: |
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
raw_value="${{ github.repository }}"
# Convert to lower case
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
# Export it to the workflow environment
# echo "MY_LOWER=$lower_value" >> $GITHUB_ENV
# If you want to use it as an output of this step:
echo "lowercase=$lower_value" >> $GITHUB_OUTPUT
# ------------------------------------------------------------------
# 1. Checkout repository
# ------------------------------------------------------------------
- name: Checkout source
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for git revparse and tag generation
# ------------------------------------------------------------------
# 2. Set up Docker Buildx (optional, but recommended for multiarch)
# ------------------------------------------------------------------
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# ------------------------------------------------------------------
# 3. Log in to the Gitea container registry
# ------------------------------------------------------------------
- name: Log in to Gitea registry
uses: docker/login-action@v3
with:
registry: ${{ secrets.REGISTRY_HOST }} # e.g. registry.example.com
username: ${{ secrets.REGISTRY_USER }} # e.g. admin
password: ${{ secrets.REGISTRY_PASSWORD }} # e.g. <apitoken>
# ------------------------------------------------------------------
# 4. Build the Docker image
# ------------------------------------------------------------------
- name: Build image
id: build
uses: docker/build-push-action@v5
with:
context: .
file: TinfoilVibeServer/Dockerfile
# do not push yet
push: false
tags: |
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: |
# Add any build args here
# ARG_NAME=VALUE
# ------------------------------------------------------------------
# 5. Push the image to the registry
# ------------------------------------------------------------------
- name: Push image
uses: docker/build-push-action@v5
with:
context: .
file: TinfoilVibeServer/Dockerfile
push: true
tags: |
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
# ------------------------------------------------------------------
# 6. (Optional) Clean up local Docker cache
# ------------------------------------------------------------------
- name: Docker system prune
run: docker system prune -f
if: ${{ always() }}
# ------------------------------------------------------------------
# 7. Output useful info
# ------------------------------------------------------------------
- name: Show pushed image tags
run: |
echo "Pushed image tags:"
echo "- ${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}"
echo "- ${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}"
echo "- ${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest"
+41
View File
@@ -0,0 +1,41 @@
name: ci
on: [push, pull_request]
jobs:
build_linux:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Convert to lowercase
id: github_repository_to_lowercase
run: |
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
raw_value="${{ github.repository }}"
# Convert to lower case
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
# Export it to the workflow environment
# echo "MY_LOWER=$lower_value" >> $GITHUB_ENV
# If you want to use it as an output of this step:
echo "lowercase=$lower_value" >> $GITHUB_OUTPUT
- name: Build image
id: build
uses: docker/build-push-action@v5
with:
context: .
file: TinfoilVibeServer/Dockerfile
# do not push yet
push: false
tags: |
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: |
# Add any build args here
# ARG_NAME=VALUE