publish to gitea server
This commit is contained in:
@@ -27,6 +27,7 @@ jobs:
|
|||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
|
registry: git.119.224.65.18.sslip.io
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
@@ -54,9 +55,9 @@ jobs:
|
|||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea/runner-images:ubuntu-24.04
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-24.04
|
||||||
gitea/runner-images:ubuntu-24.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-24.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||||
gitea/runner-images:ubuntu-latest
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-latest
|
||||||
|
|
||||||
- name: Build and push default 22.04
|
- name: Build and push default 22.04
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -75,8 +76,8 @@ jobs:
|
|||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea/runner-images:ubuntu-22.04
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-22.04
|
||||||
gitea/runner-images:ubuntu-22.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-22.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||||
|
|
||||||
- name: Build and push default 20.04
|
- name: Build and push default 20.04
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -95,8 +96,8 @@ jobs:
|
|||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea/runner-images:ubuntu-20.04
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-20.04
|
||||||
gitea/runner-images:ubuntu-20.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-20.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||||
|
|
||||||
release-slim:
|
release-slim:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -144,9 +145,9 @@ jobs:
|
|||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea/runner-images:ubuntu-24.04-slim
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-24.04-slim
|
||||||
gitea/runner-images:ubuntu-24.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-24.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||||
gitea/runner-images:ubuntu-latest-slim
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-latest-slim
|
||||||
|
|
||||||
- name: Build and push slim 22.04
|
- name: Build and push slim 22.04
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -165,8 +166,8 @@ jobs:
|
|||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea/runner-images:ubuntu-22.04-slim
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-22.04-slim
|
||||||
gitea/runner-images:ubuntu-22.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-22.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||||
|
|
||||||
- name: Build and push slim 20.04
|
- name: Build and push slim 20.04
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
@@ -185,45 +186,5 @@ jobs:
|
|||||||
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
||||||
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
||||||
tags: |
|
tags: |
|
||||||
gitea/runner-images:ubuntu-20.04-slim
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-20.04-slim
|
||||||
gitea/runner-images:ubuntu-20.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
git.119.224.65.18.sslip.io/siteorg/runner-images:ubuntu-20.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
||||||
|
|
||||||
release-full:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: gitea/runner-images:ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Get Meta
|
|
||||||
id: meta
|
|
||||||
run: |
|
|
||||||
echo IMAGE_CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') | tee -a $GITHUB_OUTPUT
|
|
||||||
echo IMAGE_VERSION=$(date -u +'v%y.%m.%d') | tee -a $GITHUB_OUTPUT
|
|
||||||
echo IMAGE_REVISION=$(git rev-parse HEAD) | tee -a $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Install skopeo
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y skopeo
|
|
||||||
|
|
||||||
- name: Copy full 24.04
|
|
||||||
run: |
|
|
||||||
for dest in ubuntu-24.04-full ubuntu-24.04-full-${{ steps.meta.outputs.IMAGE_VERSION }} ubuntu-latest-full; do
|
|
||||||
echo "copy catthehacker/ubuntu:full-24.04 -> gitea/runner-images:$dest"
|
|
||||||
skopeo copy -a --dest-creds ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} docker://ghcr.io/catthehacker/ubuntu:full-24.04 docker://gitea/runner-images:$dest
|
|
||||||
done
|
|
||||||
|
|
||||||
- name: Copy full 22.04
|
|
||||||
run: |
|
|
||||||
for dest in ubuntu-22.04-full ubuntu-22.04-full-${{ steps.meta.outputs.IMAGE_VERSION }}; do
|
|
||||||
echo "copy catthehacker/ubuntu:full-22.04 -> gitea/runner-images:$dest"
|
|
||||||
skopeo copy -a --dest-creds ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} docker://ghcr.io/catthehacker/ubuntu:full-22.04 docker://gitea/runner-images:$dest
|
|
||||||
done
|
|
||||||
- name: Copy full 20.04
|
|
||||||
run: |
|
|
||||||
for dest in ubuntu-20.04-full ubuntu-20.04-full-${{ steps.meta.outputs.IMAGE_VERSION }}; do
|
|
||||||
echo "copy catthehacker/ubuntu:full-20.04 -> gitea/runner-images:$dest"
|
|
||||||
skopeo copy -a --dest-creds ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} docker://ghcr.io/catthehacker/ubuntu:full-20.04 docker://gitea/runner-images:$dest
|
|
||||||
done
|
|
||||||
Reference in New Issue
Block a user