check-version.sh: set SEARCH_PAGES to 16 #138
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: buildx | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to container registry | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.REGISTRY_USERNAME }} | |
password: ${{ secrets.REGISTRY_TOKEN }} | |
- name: Set variables | |
shell: bash | |
run: | | |
echo "GITLAB_DIR=omnibus-gitlab" >> $GITHUB_ENV | |
echo "DOCKER_DIR=omnibus-gitlab/docker" >> $GITHUB_ENV | |
echo "GITLAB_REF_TAG=$(echo ${{ github.ref_name }} | sed 's/\-/\+/')" >> $GITHUB_ENV | |
DOCKER_NAMESPACE=yrzr/gitlab-ce-arm64v8 | |
LATEST=$(git tag | sort -rV | head -n 1) | |
if [ "${LATEST}" == "${{ github.ref_name }}" ]; then | |
echo "IS_LATEST=true">> $GITHUB_ENV | |
else | |
echo "IS_LATEST=false">> $GITHUB_ENV | |
fi | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: yrzr/gitlab-ce-arm64v8 | |
flavor: | | |
latest=${{ env.IS_LATEST }} | |
tags: | | |
type=ref,event=tag | |
type=match,pattern=(.*\..*)\..*-ce\..*,group=1 | |
type=match,pattern=(.*)\..*\..*-ce\..*,group=1 | |
- name: Check out https://github.com/gitlabhq/omnibus-gitlab.git | |
uses: actions/checkout@v3 | |
with: | |
repository: gitlabhq/omnibus-gitlab | |
path: ${{ env.GITLAB_DIR }} | |
ref: ${{ env.GITLAB_REF_TAG }} | |
- name: Perpare for building | |
shell: bash | |
run: | | |
echo "PACKAGECLOUD_REPO=gitlab-ce" > ./${{ env.DOCKER_DIR }}/RELEASE | |
echo "RELEASE_PACKAGE=gitlab-ce" >> ./${{ env.DOCKER_DIR }}/RELEASE | |
echo "RELEASE_VERSION=${{ github.ref_name }}" >> ./${{ env.DOCKER_DIR }}/RELEASE | |
echo "DOWNLOAD_URL=https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/jammy/gitlab-ce_${{ github.ref_name }}_arm64.deb/download.deb" >> ./${{ env.DOCKER_DIR }}/RELEASE | |
# variable name changed and libatomic1 installed since this commit https://github.com/gitlabhq/omnibus-gitlab/commit/ca02e0c220f009a7b0758bb32ff43d20b448d52f | |
echo "DOWNLOAD_URL_arm64=https://packages.gitlab.com/gitlab/gitlab-ce/packages/ubuntu/jammy/gitlab-ce_${{ github.ref_name }}_arm64.deb/download.deb" >> ./${{ env.DOCKER_DIR }}/RELEASE | |
cat ./${{ env.DOCKER_DIR }}/RELEASE | |
echo 'sed -i "s\# ignore-warnings ARM64-COW-BUG\ignore-warnings ARM64-COW-BUG\g" /opt/gitlab/embedded/cookbooks/redis/templates/default/redis.conf.erb' >> ./${{ env.DOCKER_DIR }}/assets/setup | |
- name: Build and Push Image | |
uses: docker/build-push-action@v4 | |
with: | |
context: ${{ env.DOCKER_DIR }} | |
platforms: linux/arm64 | |
push: true | |
tags: ${{ steps.meta.outputs.tags }} |