Skip to content

Commit

Permalink
org transfer: update references to new autotag-dev org
Browse files Browse the repository at this point in the history
  • Loading branch information
joemiller committed Nov 20, 2024
1 parent 3f96290 commit e84e603
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 113 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/catalog.yaml

This file was deleted.

22 changes: 4 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,24 +105,10 @@ archives:
- goos: windows
format: zip

# homebrew
# brews:
# - ids:
# - archives
# github:
# owner: pantheon-systems
# name: homebrew-taps
# commit_author:
# name: pantheon releases
# email: [email protected]
# folder: Formula
# homepage: "https://github.com/pantheon-systems/autotag"
# description: "Automatically add version tags to a git repo based on commit messages."

dockers:
- dockerfile: Dockerfile
image_templates:
- "quay.io/pantheon-public/autotag:{{ .Tag }}" # v1.0.0
- "quay.io/pantheon-public/autotag:v{{ .Major }}" # v1
- "quay.io/pantheon-public/autotag:v{{ .Major }}.{{ .Minor }}" # v1.0
- "quay.io/pantheon-public/autotag:latest"
- "ghcr.io/autotag-dev/autotag:{{ .Tag }}" # v1.0.0
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}" # v1
- "ghcr.io/autotag-dev/autotag:v{{ .Major }}.{{ .Minor }}" # v1.0
- "ghcr.io/autotag-dev/autotag:latest"
4 changes: 1 addition & 3 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
https://help.github.com/en/articles/about-code-owners

* @pantheon-systems/releng-squad
* @autotag-dev/maintainers
2 changes: 1 addition & 1 deletion autotag/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"log"
"os"

"github.com/autotag-dev/autotag"
"github.com/jessevdk/go-flags"
"github.com/pantheon-systems/autotag"
)

// Options holds the CLI args
Expand Down
11 changes: 5 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
AutoTag
=======

[![CI](https://github.com/pantheon-systems/autotag/actions/workflows/workflow.yml/badge.svg)](https://github.com/pantheon-systems/autotag/actions/workflows/workflow.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/pantheon-systems/autotag)](https://goreportcard.com/report/github.com/pantheon-systems/autotag)
[![Actively Maintained](https://img.shields.io/badge/Pantheon-Actively_Maintained-yellow?logo=pantheon&color=FFDC28)](https://pantheon.io/docs/oss-support-levels#actively-maintained-support)
[![CI](https://github.com/autotag-dev/autotag/actions/workflows/workflow.yml/badge.svg)](https://github.com/autotag-dev/autotag/actions/workflows/workflow.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/autotag-dev/autotag)](https://goreportcard.com/report/github.com/autotag-dev/autotag)


Automatically increment version tags to a git repo based on commit messages.
Expand Down Expand Up @@ -50,9 +49,9 @@ Installing

| Arch | Images |
| ----- | ---------------------------------------------------------------- |
| amd64 | `quay.io/pantheon-public/autotag:latest`, `vX.Y.Z`, `vX.Y`, `vX` |
| amd64 | `ghcr.io/autotag-dev/autotag:latest`, `vX.Y.Z`, `vX.Y`, `vX` |

[releases]: https://github.com/pantheon-systems/autotag/releases/latest
[releases]: https://github.com/autotag-dev/autotag/releases/latest

### One-liner

Expand Down Expand Up @@ -289,7 +288,7 @@ Assuming you have Go 1.5+ installed you can checkout and run make deps build to
at `./autotag/autotag`.

```console
git clone git@github.com:pantheon-systems/autotag.git
git clone https://github.com/autotag-dev/autotag.git
cd autotag
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pantheon-systems/autotag
module github.com/autotag-dev/autotag

go 1.20

Expand Down
128 changes: 64 additions & 64 deletions installer
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ set -e
usage() {
this=$1
cat <<EOF
$this: download go binaries for pantheon-systems/autotag
$this: download go binaries for autotag-dev/autotag
Usage: $this [-b] bindir [-d] [tag]
-b sets bindir or installation directory, Defaults to ./bin
-d turns on debug logging
[tag] is a tag from
https://github.com/pantheon-systems/autotag/releases
https://github.com/autotag-dev/autotag/releases
If tag is missing, then the latest will be used.
Generated by godownloader
Expand All @@ -37,10 +37,10 @@ parse_args() {
BINDIR=${BINDIR:-./bin}
while getopts "b:dh?x" arg; do
case "$arg" in
b) BINDIR="$OPTARG" ;;
d) log_set_priority 10 ;;
h | \?) usage "$0" ;;
x) set -x ;;
b) BINDIR="$OPTARG" ;;
d) log_set_priority 10 ;;
h | \?) usage "$0" ;;
x) set -x ;;
esac
done
shift $((OPTIND - 1))
Expand Down Expand Up @@ -70,11 +70,11 @@ execute() {
}
get_binaries() {
case "$PLATFORM" in
darwin/amd64 | linux/amd64 | darwin/arm64 | linux/arm64) BINARIES="autotag" ;;
*)
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
exit 1
;;
darwin/amd64 | linux/amd64 | darwin/arm64 | linux/arm64) BINARIES="autotag" ;;
*)
log_crit "platform $PLATFORM is not supported. Make sure this script is up-to-date and file request at https://github.com/${PREFIX}/issues/new"
exit 1
;;
esac
}
tag_to_version() {
Expand Down Expand Up @@ -135,15 +135,15 @@ log_priority() {
}
log_tag() {
case $1 in
0) echo "emerg" ;;
1) echo "alert" ;;
2) echo "crit" ;;
3) echo "err" ;;
4) echo "warning" ;;
5) echo "notice" ;;
6) echo "info" ;;
7) echo "debug" ;;
*) echo "$1" ;;
0) echo "emerg" ;;
1) echo "alert" ;;
2) echo "crit" ;;
3) echo "err" ;;
4) echo "warning" ;;
5) echo "notice" ;;
6) echo "info" ;;
7) echo "debug" ;;
*) echo "$1" ;;
esac
}
log_debug() {
Expand All @@ -165,75 +165,75 @@ log_crit() {
uname_os() {
os=$(uname -s | tr '[:upper:]' '[:lower:]')
case "$os" in
cygwin_nt*) os="windows" ;;
mingw*) os="windows" ;;
msys_nt*) os="windows" ;;
cygwin_nt*) os="windows" ;;
mingw*) os="windows" ;;
msys_nt*) os="windows" ;;
esac
echo "$os"
}
uname_arch() {
arch=$(uname -m)
case $arch in
x86_64) arch="amd64" ;;
x86) arch="386" ;;
i686) arch="386" ;;
i386) arch="386" ;;
aarch64) arch="arm64" ;;
armv5*) arch="armv5" ;;
armv6*) arch="armv6" ;;
armv7*) arch="armv7" ;;
x86_64) arch="amd64" ;;
x86) arch="386" ;;
i686) arch="386" ;;
i386) arch="386" ;;
aarch64) arch="arm64" ;;
armv5*) arch="armv5" ;;
armv6*) arch="armv6" ;;
armv7*) arch="armv7" ;;
esac
echo ${arch}
}
uname_os_check() {
os=$(uname_os)
case "$os" in
darwin) return 0 ;;
dragonfly) return 0 ;;
freebsd) return 0 ;;
linux) return 0 ;;
android) return 0 ;;
nacl) return 0 ;;
netbsd) return 0 ;;
openbsd) return 0 ;;
plan9) return 0 ;;
solaris) return 0 ;;
windows) return 0 ;;
darwin) return 0 ;;
dragonfly) return 0 ;;
freebsd) return 0 ;;
linux) return 0 ;;
android) return 0 ;;
nacl) return 0 ;;
netbsd) return 0 ;;
openbsd) return 0 ;;
plan9) return 0 ;;
solaris) return 0 ;;
windows) return 0 ;;
esac
log_crit "uname_os_check '$(uname -s)' got converted to '$os' which is not a GOOS value. Please file bug at https://github.com/client9/shlib"
return 1
}
uname_arch_check() {
arch=$(uname_arch)
case "$arch" in
386) return 0 ;;
amd64) return 0 ;;
arm64) return 0 ;;
armv5) return 0 ;;
armv6) return 0 ;;
armv7) return 0 ;;
ppc64) return 0 ;;
ppc64le) return 0 ;;
mips) return 0 ;;
mipsle) return 0 ;;
mips64) return 0 ;;
mips64le) return 0 ;;
s390x) return 0 ;;
amd64p32) return 0 ;;
386) return 0 ;;
amd64) return 0 ;;
arm64) return 0 ;;
armv5) return 0 ;;
armv6) return 0 ;;
armv7) return 0 ;;
ppc64) return 0 ;;
ppc64le) return 0 ;;
mips) return 0 ;;
mipsle) return 0 ;;
mips64) return 0 ;;
mips64le) return 0 ;;
s390x) return 0 ;;
amd64p32) return 0 ;;
esac
log_crit "uname_arch_check '$(uname -m)' got converted to '$arch' which is not a GOARCH value. Please file bug report at https://github.com/client9/shlib"
return 1
}
untar() {
tarball=$1
case "${tarball}" in
*.tar.gz | *.tgz) tar --no-same-owner -xzf "${tarball}" ;;
*.tar) tar --no-same-owner -xf "${tarball}" ;;
*.zip) unzip "${tarball}" ;;
*)
log_err "untar unknown archive format for ${tarball}"
return 1
;;
*.tar.gz | *.tgz) tar --no-same-owner -xzf "${tarball}" ;;
*.tar) tar --no-same-owner -xf "${tarball}" ;;
*.zip) unzip "${tarball}" ;;
*)
log_err "untar unknown archive format for ${tarball}"
return 1
;;
esac
}
http_download_curl() {
Expand Down Expand Up @@ -336,7 +336,7 @@ End of functions from https://github.com/client9/shlib
EOF

PROJECT_NAME="autotag"
OWNER=pantheon-systems
OWNER=autotag-dev
REPO="autotag"
BINARY=autotag
FORMAT=tar.gz
Expand Down

0 comments on commit e84e603

Please sign in to comment.