To figure out: https://gitea.com/gitea/runner-images/actions/runs/23/jobs/0 ```text #7 exporting to image #7 pushing layers 41.0s done #7 ERROR: failed to push gitea/runner-images:ubuntu-22.04: failed to copy: unexpected status from PUT request to https://registry-1.docker.io/v2/gitea/runner-images/blobs/uploads/cf46ee76-f28f-440e-bed7-2032e9c63701?_state=HbE9pgg2q0_ufbqUQgkYL-Ir0Y3_gO_c-NYLw7vWF4x7Ik5hbWUiOiJnaXRlYS9ydW5uZXItaW1hZ2VzIiwiVVVJRCI6ImNmNDZlZTc2LWYyOGYtNDQwZS1iZWQ3LTIwMzJlOWM2MzcwMSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyNC0wNy0xMFQxMDoxMzoyMC4wMjk0ODg1NTZaIn0%3D&digest=sha256%3A89317e7cb0cfefc3b187f1ae94e5524d9966a423d63412d43b09ea0e5aaebfd0: 400 Bad request ------ > exporting to image: ------ ERROR: failed to solve: failed to push gitea/runner-images:ubuntu-22.04: failed to copy: unexpected status from PUT request to https://registry-1.docker.io/v2/gitea/runner-images/blobs/uploads/cf46ee76-f28f-440e-bed7-2032e9c63701?_state=HbE9pgg2q0_ufbqUQgkYL-Ir0Y3_gO_c-NYLw7vWF4x7Ik5hbWUiOiJnaXRlYS9ydW5uZXItaW1hZ2VzIiwiVVVJRCI6ImNmNDZlZTc2LWYyOGYtNDQwZS1iZWQ3LTIwMzJlOWM2MzcwMSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyNC0wNy0xMFQxMDoxMzoyMC4wMjk0ODg1NTZaIn0%3D&digest=sha256%3A89317e7cb0cfefc3b187f1ae94e5524d9966a423d63412d43b09ea0e5aaebfd0: 400 Bad request ::group::Reference builder-7537891e-051a-4935-bee7-f52cb4dae178/builder-7537891e-051a-4935-bee7-f52cb4dae1780/wfpwvb7z2vc7huxnl57gi76aw ::endgroup:: ::group::Check build summary support ::warning::Build summary is not yet supported on GHES ::endgroup:: ::error::buildx failed with: ERROR: failed to solve: failed to push gitea/runner-images:ubuntu-22.04: failed to copy: unexpected status from PUT request to https://registry-1.docker.io/v2/gitea/runner-images/blobs/uploads/cf46ee76-f28f-440e-bed7-2032e9c63701?_state=HbE9pgg2q0_ufbqUQgkYL-Ir0Y3_gO_c-NYLw7vWF4x7Ik5hbWUiOiJnaXRlYS9ydW5uZXItaW1hZ2VzIiwiVVVJRCI6ImNmNDZlZTc2LWYyOGYtNDQwZS1iZWQ3LTIwMzJlOWM2MzcwMSIsIk9mZnNldCI6MCwiU3RhcnRlZEF0IjoiMjAyNC0wNy0xMFQxMDoxMzoyMC4wMjk0ODg1NTZaIn0%253D&digest=sha256%253A89317e7cb0cfefc3b187f1ae94e5524d9966a423d63412d43b09ea0e5aaebfd0: 400 Bad request ``` Reviewed-on: https://gitea.com/gitea/runner-images/pulls/13
183 lines
6.1 KiB
YAML
183 lines
6.1 KiB
YAML
name: release
|
|
|
|
on:
|
|
schedule:
|
|
- cron: 0 0 1 * *
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
release-default:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: gitea/runner-images:ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker BuildX
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
buildkitd-flags: --debug
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- 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: Build and push default 22.04
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: dockerfiles/ubuntu.dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
pull: true
|
|
push: true
|
|
no-cache: true
|
|
build-args: |
|
|
BASE_IMAGE_TAG=act-22.04
|
|
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
|
tags: |
|
|
gitea/runner-images:ubuntu-22.04
|
|
gitea/runner-images:ubuntu-22.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
gitea/runner-images:ubuntu-latest
|
|
|
|
- name: Build and push default 20.04
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: dockerfiles/ubuntu.dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
pull: true
|
|
push: true
|
|
no-cache: true
|
|
build-args: |
|
|
BASE_IMAGE_TAG=act-20.04
|
|
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
|
tags: |
|
|
gitea/runner-images:ubuntu-20.04
|
|
gitea/runner-images:ubuntu-20.04-${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
|
|
release-slim:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: gitea/runner-images:ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker BuildX
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
buildkitd-flags: --debug
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@v3
|
|
with:
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
|
|
- 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: Build and push slim 22.04
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: dockerfiles/ubuntu-slim.dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
pull: true
|
|
push: true
|
|
no-cache: true
|
|
build-args: |
|
|
BASE_IMAGE_TAG=20-bookworm-slim
|
|
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
|
tags: |
|
|
gitea/runner-images:ubuntu-22.04-slim
|
|
gitea/runner-images:ubuntu-22.04-slim-${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
gitea/runner-images:ubuntu-latest-slim
|
|
|
|
- name: Build and push slim 20.04
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: dockerfiles/ubuntu-slim.dockerfile
|
|
platforms: |
|
|
linux/amd64
|
|
linux/arm64
|
|
pull: true
|
|
push: true
|
|
no-cache: true
|
|
build-args: |
|
|
BASE_IMAGE_TAG=20-bullseye-slim
|
|
IMAGE_VERSION=${{ steps.meta.outputs.IMAGE_VERSION }}
|
|
IMAGE_CREATED=${{ steps.meta.outputs.IMAGE_CREATED }}
|
|
IMAGE_REVISION=${{ steps.meta.outputs.IMAGE_REVISION }}
|
|
tags: |
|
|
gitea/runner-images:ubuntu-20.04-slim
|
|
gitea/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 22.04
|
|
run: |
|
|
for dest in ubuntu-22.04-full ubuntu-22.04-full-${{ steps.meta.outputs.IMAGE_VERSION }} ubuntu-latest-full; 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
|