Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archlinux-docker
Commits
8fd7b251
Commit
8fd7b251
authored
Nov 02, 2020
by
Arch Linux Docker release bot
Browse files
Release 20201102.0.8144
parent
0fd00491
Pipeline
#2712
failed with stages
in 17 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
8fd7b251
...
...
@@ -6,7 +6,6 @@ stages:
-
rootfs
-
image
-
test
-
upload
-
release
-
publish
...
...
@@ -114,8 +113,10 @@ image:build:secure:
before_script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$GITLAB_PROJECT_USER\",\"password\":\"$GITLAB_PROJECT_TOKEN\"}}}" > /kaniko/.docker/config.json
# Build and publish to the Arch Linux group namespace: https://hub.docker.com/r/archlinux/archlinux
image:publish:secure:
extends
:
.image
retry
:
2
tags
:
-
secure
only
:
...
...
@@ -124,13 +125,19 @@ image:publish:secure:
matrix
:
-
GROUP
:
[
base
,
base-devel
]
before_script
:
-
echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKER_USERNAME\",\"password\":\"$DOCKER_ACCESS_TOKEN\"}}}" > /kaniko/.docker/config.json
-
echo "{\"auths\":{\"https://index.docker.io/v1/\":{\"username\":\"$DOCKER
HUB
_USERNAME\",\"password\":\"$DOCKER
HUB
_ACCESS_TOKEN\"}}}" > /kaniko/.docker/config.json
script
:
-
LATEST=""
-
if [[ "$GROUP" == "base" ]]; then
LATEST="--destination archlinux/archlinux:latest"
fi
-
/kaniko/executor
--whitelist-var-run="false"
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile.$GROUP
--destination archlinux/archlinux:$GROUP
--destination archlinux/archlinux:$GROUP-$BUILD_VERSION
$LATEST
.test
:
stage
:
test
...
...
@@ -174,11 +181,17 @@ release:
-
schedules
variables
:
-
$PUBLISH_ARCHLINUX_REPOSITORY == "TRUE"
-
$PUBLISH_OFFICIAL_LIBRARY == "TRUE"
before_script
:
-
apk update
-
apk add jq curl
-
apk add jq curl
httpie
script
:
-
|
# Update the description on https://hub.docker.com/r/archlinux/archlinux
TOKEN="$(http --ignore-stdin POST https://hub.docker.com/v2/users/login username="${DOCKERHUB_USERNAME}" password="${DOCKERHUB_PASSWORD}" | jq -er .token)"
http --ignore-stdin PATCH https://hub.docker.com/v2/repositories/archlinux/archlinux/ Authorization:"JWT ${TOKEN}" full_description="$(cat README.md)"
# Upload rootfs to the Generic Packages Repository
for group in base base-devel; do
sed -i "s|${group}.tar.xz|${group}-${BUILD_VERSION}.tar.xz|" output/${group}.tar.xz.SHA256
echo "Uploading ${group}.tar.xz"
...
...
@@ -229,27 +242,8 @@ release:
reports
:
dotenv
:
build.env
# Publish base to the Arch Linux group namespace: https://hub.docker.com/r/archlinux/archlinux
publish
:
stage
:
publish
tags
:
-
secure
image
:
name
:
gcr.io/go-containerregistry/crane:debug
entrypoint
:
[
"
"
]
variables
:
GIT_STRATEGY
:
none
only
:
-
tags
before_script
:
-
echo $DOCKER_ACCESS_TOKEN | crane auth login -u $DOCKER_USERNAME --password-stdin index.docker.io
script
:
-
crane tag archlinux/archlinux:base-$BUILD_VERSION base
-
crane tag archlinux/archlinux:base-$BUILD_VERSION latest
-
crane tag archlinux/archlinux:base-devel-$BUILD_VERSION base-devel
# Publish to the official Docker namespace: https://hub.docker.com/_/archlinux
publish:
official:
publish
:
stage
:
publish
only
:
refs
:
...
...
Dockerfile.base
View file @
8fd7b251
...
...
@@ -10,8 +10,8 @@
# allow us to automate the releaes process.
FROM archlinux:latest AS verify
SHELL ["/bin/bash", "-c"]
RUN ROOTFS="$(curl -OJL --continue-at - -w "%{filename_effective}" https://gitlab.archlinux.org/archlinux/archlinux-docker/-/package_files/10
1
/download)" && \
sha256sum -c <<< "
00da3fffe8db12b03176305862f437c425ff1ed3fcd8d602dee447c9bfb475b6
base-2020110
1
.0.
7893
.tar.xz" && \
RUN ROOTFS="$(curl -OJL --continue-at - -w "%{filename_effective}" https://gitlab.archlinux.org/archlinux/archlinux-docker/-/package_files/10
5
/download)" && \
sha256sum -c <<< "
a6125a7252e89cf312cc0dcefa5023d663babaa58b6dbcd16579654f53d4eab1
base-2020110
2
.0.
8144
.tar.xz" && \
mkdir /rootfs && \
tar -C /rootfs --extract --auto-compress --file "${ROOTFS}"
...
...
Dockerfile.base-devel
View file @
8fd7b251
...
...
@@ -10,8 +10,8 @@
# allow us to automate the releaes process.
FROM archlinux:latest AS verify
SHELL ["/bin/bash", "-c"]
RUN ROOTFS="$(curl -OJL --continue-at - -w "%{filename_effective}" https://gitlab.archlinux.org/archlinux/archlinux-docker/-/package_files/10
3
/download)" && \
sha256sum -c <<< "
236bc84e7b145cc3687b120e2ac91ecc5e38700f6f81420ca1904e41d4997feb
base-devel-2020110
1
.0.
7893
.tar.xz" && \
RUN ROOTFS="$(curl -OJL --continue-at - -w "%{filename_effective}" https://gitlab.archlinux.org/archlinux/archlinux-docker/-/package_files/10
7
/download)" && \
sha256sum -c <<< "
e0bfd585ff7bf33e743a0abfc7d217dd7a33f81554c656fb57785a2bdce717b8
base-devel-2020110
2
.0.
8144
.tar.xz" && \
mkdir /rootfs && \
tar -C /rootfs --extract --auto-compress --file "${ROOTFS}"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment