Compare commits
47 Commits
build-late
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 2d35dd749e | |||
| 039910509e | |||
| cfab5c2bd7 | |||
| 9bcd039b31 | |||
| 4d34403278 | |||
| ab36c5c80b | |||
| 60ecdcea4d | |||
| fca7a4e3ac | |||
| dccc1a36cb | |||
| b42bbd4f1b | |||
| 51fc743089 | |||
| 97b9a128b9 | |||
| 78fa8981d2 | |||
| 9cde049241 | |||
| 856c948817 | |||
| 9efa0cf20d | |||
| 8edba05187 | |||
| eae83f5b02 | |||
| dfcb8f1c38 | |||
| 6e536ef00e | |||
| 2d8ab4608c | |||
| 4d3e30e57c | |||
| ae257ac2a2 | |||
| 3826784e29 | |||
| 5a3d53ed7f | |||
| 63ac4cfa0d | |||
| 2f3a333870 | |||
| 0928a980c8 | |||
| b4d434dee5 | |||
| 6e42008b5d | |||
| 31c1b3bd00 | |||
| ddf7369257 | |||
| c1a30a9077 | |||
| 7f1339e573 | |||
| 33afcf3737 | |||
| 5116600682 | |||
| b9820fa43c | |||
| 5284c71aaa | |||
| 6b01f608c6 | |||
| 4147419d83 | |||
| 7912392de0 | |||
| a31aba23ba | |||
| 0f425d7a7c | |||
| 0b6e47de87 | |||
| ba0a59d7fc | |||
| 7a42204d62 | |||
| b9076ec850 |
@@ -4,9 +4,10 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths-ignore:
|
||||
- '**/CHANGES.md'
|
||||
- '**/build-info.json'
|
||||
paths:
|
||||
- '.gitea/workflows/*.yml'
|
||||
- '!**/CHANGES.md'
|
||||
- '!**/build-info.json'
|
||||
schedule:
|
||||
- cron: '0 12 * * 0' # Sunday at noon UTC
|
||||
|
||||
@@ -19,7 +20,7 @@ env:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: docker-build2
|
||||
runs-on: vm-docker-build2
|
||||
outputs:
|
||||
tarball-updated: ${{ steps.set-output.outputs.tarball_updated }}
|
||||
steps:
|
||||
@@ -28,17 +29,17 @@ jobs:
|
||||
|
||||
- name: Build Alpine Base Image
|
||||
run: |
|
||||
docker build -t alpine-builder .
|
||||
docker build -t alpine-base .
|
||||
mkdir -p latest
|
||||
container_id=$(docker create alpine-builder)
|
||||
container_id=$(docker create alpine-base)
|
||||
docker cp "$container_id":/output/alpine-base.tar.gz ./latest/alpine-base.tar.gz
|
||||
docker rm "$container_id"
|
||||
|
||||
- name: Show tarball
|
||||
run: ls -lh ${{ env.OUTPUT_TAR }}
|
||||
|
||||
- name: Clone upload repo
|
||||
run: git clone https://gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
- name: Clone repo with token auth
|
||||
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
|
||||
- name: Copy and push tarball
|
||||
run: |
|
||||
@@ -61,17 +62,15 @@ jobs:
|
||||
|
||||
push-docker:
|
||||
needs: build-and-push
|
||||
if: always()
|
||||
# if: needs.build-and-push-rootfs.outputs.tarball-updated == 'true'
|
||||
runs-on: docker-build2
|
||||
if: needs.build-and-push-rootfs.outputs.tarball-updated == 'true'
|
||||
runs-on: vm-docker-build2
|
||||
|
||||
steps:
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login gitea.fithwum.tech -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Clone upload repo
|
||||
run: git clone https://gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
- name: Clone repo with token auth
|
||||
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
|
||||
- name: Build and push Docker image
|
||||
run: |
|
||||
@@ -84,12 +83,10 @@ jobs:
|
||||
|
||||
update-changelog:
|
||||
needs: push-docker
|
||||
runs-on: docker-build2
|
||||
|
||||
runs-on: vm-docker-build2
|
||||
steps:
|
||||
- name: Clone repo with token auth
|
||||
run: |
|
||||
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
|
||||
- name: Update CHANGES.md
|
||||
run: |
|
||||
@@ -122,12 +119,11 @@ jobs:
|
||||
|
||||
update-build-info:
|
||||
needs: update-changelog
|
||||
runs-on: docker-build2
|
||||
runs-on: vm-docker-build2
|
||||
|
||||
steps:
|
||||
- name: Clone repo with token auth
|
||||
run: |
|
||||
git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
run: git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git upload-repo
|
||||
|
||||
- name: Generate build-info.json
|
||||
run: |
|
||||
@@ -168,5 +164,4 @@ jobs:
|
||||
git tag -d "build-latest" 2>/dev/null || true
|
||||
git tag "build-latest"
|
||||
git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_TOKEN }}@gitea.fithwum.tech/fithwum/alpine-base.git --tags
|
||||
fi
|
||||
|
||||
fi
|
||||
68
Dockerfile
68
Dockerfile
@@ -1,3 +1,71 @@
|
||||
# FROM alpine:latest AS builder
|
||||
# LABEL maintainer="fithwum"
|
||||
|
||||
# ARG ALPINE_VERSION
|
||||
# ENV ALPINE_VERSION=${ALPINE_VERSION}
|
||||
|
||||
# WORKDIR /builder
|
||||
|
||||
# # Install tools needed for building rootfs
|
||||
# RUN apk update && apk add --no-cache bash curl wget git jq ca-certificates coreutils tar gzip
|
||||
|
||||
# # Download alpine-make-rootfs script
|
||||
# RUN wget https://raw.githubusercontent.com/alpinelinux/alpine-make-rootfs/master/alpine-make-rootfs \
|
||||
# && chmod +x alpine-make-rootfs
|
||||
|
||||
# # Build the rootfs
|
||||
# RUN ./alpine-make-rootfs \
|
||||
# --branch ${ALPINE_VERSION} \
|
||||
# --mirror http://dl-cdn.alpinelinux.org/alpine/ \
|
||||
# --packages "bash curl ca-certificates nano" \
|
||||
# alpine-rootfs
|
||||
|
||||
# # Run custom script inside rootfs
|
||||
# COPY base-image-script/alpine-base_pt2.sh /builder/alpine-rootfs/
|
||||
# RUN chmod +x /builder/alpine-rootfs/alpine-base_pt2.sh && \
|
||||
# chroot /builder/alpine-rootfs /alpine-base_pt2.sh || true
|
||||
|
||||
# # Clean up script
|
||||
# RUN rm -f /builder/alpine-rootfs/alpine-base_pt2.sh
|
||||
|
||||
# # Package with versioned filename
|
||||
# RUN mkdir -p /output && \
|
||||
# tar -czf /output/alpine-${ALPINE_VERSION}.tar.gz -C alpine-rootfs .
|
||||
|
||||
# # Final stage just copies the archive
|
||||
# FROM scratch AS export-stage
|
||||
# ARG ALPINE_VERSION
|
||||
# COPY --from=builder /output/alpine-${ALPINE_VERSION}.tar.gz /output/alpine-${ALPINE_VERSION}.tar.gz
|
||||
# CMD ["sleep", "infinity"]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
FROM alpine:3.20 AS builder
|
||||
LABEL maintainer="fithwum"
|
||||
|
||||
|
||||
Binary file not shown.
4
v3.18/Dockerfile
Normal file
4
v3.18/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM scratch
|
||||
LABEL maintainer="fithwum"
|
||||
ADD alpine-v3.18.tar.gz /
|
||||
CMD ["/bin/sh"]
|
||||
BIN
v3.18/alpine-v3.18.tar.gz
Normal file
BIN
v3.18/alpine-v3.18.tar.gz
Normal file
Binary file not shown.
4
v3.19/Dockerfile
Normal file
4
v3.19/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM scratch
|
||||
LABEL maintainer="fithwum"
|
||||
ADD alpine-v3.19.tar.gz /
|
||||
CMD ["/bin/sh"]
|
||||
BIN
v3.19/alpine-v3.19.tar.gz
Normal file
BIN
v3.19/alpine-v3.19.tar.gz
Normal file
Binary file not shown.
4
v3.20/Dockerfile
Normal file
4
v3.20/Dockerfile
Normal file
@@ -0,0 +1,4 @@
|
||||
FROM scratch
|
||||
LABEL maintainer="fithwum"
|
||||
ADD alpine-v3.20.tar.gz /
|
||||
CMD ["/bin/sh"]
|
||||
BIN
v3.20/alpine-v3.20.tar.gz
Normal file
BIN
v3.20/alpine-v3.20.tar.gz
Normal file
Binary file not shown.
Reference in New Issue
Block a user