File: README.md

package info (click to toggle)
simdutf 8.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,524 kB
  • sloc: cpp: 64,498; ansic: 15,347; python: 3,592; sh: 366; makefile: 12
file content (30 lines) | stat: -rw-r--r-- 1,044 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Formatting

This directory contains a dockerfile to build an image
suitable for clang format.

These are the instructions for building and publishing the image.

## Get an access token
Follow the instructions on https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens

The end result is a string with the token, which you use in the next step.

## Build the docker image

In this example, the docker image will be uploaded to namespace "pauldreik".

    docker build --build-arg CLANGVERSION=18 --tag ghcr.io/pauldreik/clang-format-18:latest .

## Publish the docker image

In this example, the docker image will be uploaded to namespace "pauldreik" by user "pauldreik".

    export CR_PAT=xxxxx # token from above
    echo $CR_PAT | docker login ghcr.io -u pauldreik --password-stdin
    docker push ghcr.io/pauldreik/clang-format-18:latest

## Setting the rights

Go to the packages page in the github UI and modify the rights from private to public
on the clang-format-18 image.