init Gitea
Build and Push ApacheOIDC Docker Image / build (push) Successful in 1m1s

This commit is contained in:
boxi committed 2026-06-28 20:24:01 +02:00
1 parent 0c7a4a71cc
commit 2facb67517
4 files changed
+53 -56

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
name: Build and Push ApacheOIDC Docker Image
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: gitea.tail276105.ts.net
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Docker imageTags
run: |
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
echo "versioned: gitea.tail276105.ts.net/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}"
echo "latest: gitea.tail276105.ts.net/${REPOSITORY_LC}:latest"
- name: Build Docker Image
run: |
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
# Build the image with the commit hash tag
export DOCKER_CLI_EXPERIMENTAL=enabled;
docker buildx create --name boxitapache || true 2>/dev/null;
docker buildx use boxitapache;
docker buildx build \
--platform linux/arm64,linux/amd64 \
--tag gitea.tail276105.ts.net/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} \
--load \
.;
# Tag the same image as "latest"
docker tag gitea.tail276105.ts.net/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER} gitea.tail276105.ts.net/${REPOSITORY_LC}:latest
- name: Push Docker Images
run: |
REPOSITORY_LC=$(echo "${{ gitea.repository }}" | tr '[:upper:]' '[:lower:]')
docker push gitea.tail276105.ts.net/${REPOSITORY_LC}:${GITHUB_RUN_NUMBER}
docker push gitea.tail276105.ts.net/${REPOSITORY_LC}:latest
- name: Log out from registry
if: always()
run: docker logout gitea.tail276105.ts.net
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.