Skip to content

Commit e022630

Browse files
committed
Tag and publish for ghcr
1 parent 69e4e9b commit e022630

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

build-alpine.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ RUN sed -i \
1010
/etc/apk/repositories
1111
EOF
1212
docker build -f $dockerfile -t ustclug/alpine:$tag .
13+
docker tag ustclug/alpine:$tag ghcr.io/ustclug/alpine:$tag
1314
docker push ustclug/alpine:$tag
15+
docker push ghcr.io/ustclug/alpine:$tag
1416
rm $dockerfile
1517
done

build-debian.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ RUN sed -i \
1818
/etc/apt/sources.list.d/debian.sources $backports_list
1919
EOF
2020
docker build -f $dockerfile -t ustclug/debian:$tag .
21+
docker tag ustclug/debian:$tag ghcr.io/ustclug/debian:$tag
2122
docker push ustclug/debian:$tag
23+
docker push ghcr.io/ustclug/debian:$tag
2224
rm $dockerfile
2325
done

build-fedora.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ RUN $sedcommand /etc/yum.repos.d/fedora-modular.repo /etc/yum.repos.d/fedora-upd
1212
&& $sedcommand /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-updates.repo
1313
EOF
1414
docker build -f $dockerfile -t ustclug/fedora:$tag .
15+
docker tag ustclug/fedora:$tag ghcr.io/ustclug/fedora:$tag
1516
docker push ustclug/fedora:$tag
17+
docker push ghcr.io/ustclug/fedora:$tag
1618
rm $dockerfile
1719
done

build-rocky.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ RUN sed -i \
1717
/etc/yum.repos.d/rocky*.repo
1818
EOF
1919
docker build -f $dockerfile -t ustclug/rocky:$tag .
20+
docker tag ustclug/rocky:$tag ghcr.io/ustclug/rocky:$tag
2021
docker push ustclug/rocky:$tag
22+
docker push ghcr.io/ustclug/rocky:$tag
2123
rm $dockerfile
2224
done

build-ubuntu.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ RUN sed -i \
1616
/etc/apt/sources.list.d/ubuntu.sources || true
1717
EOF
1818
docker build -f $dockerfile -t ustclug/ubuntu:$tag .
19+
docker tag ustclug/ubuntu:$tag ghcr.io/ustclug/ubuntu:$tag
1920
docker push ustclug/ubuntu:$tag
21+
docker push ghcr.io/ustclug/ubuntu:$tag
2022
rm $dockerfile
2123
done

0 commit comments

Comments
 (0)