File tree 5 files changed +18
-10
lines changed
5 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 31
31
32
32
- name : Build setup-hw image
33
33
run : |
34
- docker build -t quay .io/cybozu/setup-hw:latest --target stage1 docker
35
- docker build -t quay .io/cybozu/setup-hw-secret:latest docker
34
+ docker build -t ghcr .io/cybozu-go /setup-hw:latest --target stage1 docker
35
+ docker build -t ghcr .io/cybozu-go /setup-hw-secret:latest docker
Original file line number Diff line number Diff line change @@ -21,18 +21,24 @@ jobs:
21
21
22
22
- name : Build setup-hw image
23
23
run : |
24
- docker build -t quay.io/cybozu/setup-hw:latest --target stage1 docker
25
- docker build -t quay.io/cybozu/setup-hw-secret:latest docker
24
+ docker build -t ghcr.io/cybozu-go/setup-hw:latest --target stage1 docker
25
+ docker build -t ghcr.io/cybozu-go/setup-hw-secret:latest docker
26
+
27
+ - name : Login to GitHub Container Registry
28
+ uses : docker/login-action@v3
29
+ with :
30
+ registry : ghcr.io
31
+ username : ${{ github.actor }}
32
+ password : ${{ secrets.GITHUB_TOKEN }}
26
33
27
34
- name : Push images
28
35
run : |
29
- echo ${{ secrets.QUAY_PASSWORD }} | docker login -u ${{ secrets.QUAY_USER }} --password-stdin quay.io
30
36
tag=${GITHUB_REF#refs/tags/v}
31
37
for name in setup-hw setup-hw-secret; do
32
38
echo "pushing ${name}:v${tag} ..."
33
- docker tag quay .io/cybozu/${name}:latest quay .io/cybozu/${name}:$tag
34
- if ! echo $tag | grep -q -e '-'; then docker push quay .io/cybozu/${name}:latest; fi
35
- docker push quay .io/cybozu/${name}:$tag
39
+ docker tag ghcr .io/cybozu-go /${name}:latest ghcr .io/cybozu-go /${name}:$tag
40
+ if ! echo $tag | grep -q -e '-'; then docker push ghcr .io/cybozu-go /${name}:latest; fi
41
+ docker push ghcr .io/cybozu-go /${name}:$tag
36
42
done
37
43
38
44
- name : Create release
Original file line number Diff line number Diff line change @@ -49,6 +49,6 @@ ifdef GOBIN
49
49
else
50
50
cp $(foreach f, $(BINS_IMAGE), $(GOPATH)/bin/$(f)) ./docker/
51
51
endif
52
- cd docker && docker build -t quay .io/cybozu/setup-hw:dev .
52
+ cd docker && docker build -t ghcr .io/cybozu-go /setup-hw:dev .
53
53
54
54
.PHONY : all generate check-generate setup test install build-image
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ $ docker run -d --name=setup-hw \
37
37
Docker images
38
38
-------------
39
39
40
- Docker images are available on [ Quay .io] ( https://quay.io/repository/ cybozu/setup-hw )
40
+ Docker images are available on [ ghcr .io] ( https://github.com/ cybozu-go/setup-hw/pkgs/container /setup-hw )
41
41
42
42
### Access ` monitor-hw `
43
43
Original file line number Diff line number Diff line change 1
1
FROM ubuntu:22.04 as stage1
2
+ LABEL org.opencontainers.image.source="https://github.com/cybozu-go/setup-hw"
2
3
3
4
COPY setup-hw /usr/local/bin/setup-hw
4
5
COPY monitor-hw /usr/local/sbin/monitor-hw
@@ -9,6 +10,7 @@ CMD ["/usr/local/sbin/monitor-hw"]
9
10
10
11
# Install vendor tools
11
12
FROM stage1
13
+ LABEL org.opencontainers.image.source="https://github.com/cybozu-go/setup-hw"
12
14
13
15
# See https://linux.dell.com/repo/community/openmanage/
14
16
ARG OMSA_VERSION=11000
You can’t perform that action at this time.
0 commit comments