File tree 1 file changed +16
-4
lines changed
1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
build :
10
10
runs-on : ubuntu-22.04
11
+ permissions :
12
+ packages : write
13
+ contents : read
11
14
steps :
12
15
- uses : actions/checkout@v4
13
16
- name : Install packages
28
31
with :
29
32
username : ${{ secrets.DOCKER_HUB_USER }}
30
33
password : ${{ secrets.DOCKER_HUB_TOKEN }}
34
+ - uses : docker/login-action@v3
35
+ with :
36
+ registry : ghcr.io
37
+ username : ${{ github.actor }}
38
+ password : ${{ secrets.GITHUB_TOKEN }}
31
39
- name : Determine docker tags
32
40
id : docker_tag
33
41
run : |
@@ -42,18 +50,22 @@ jobs:
42
50
echo "ALPINE_TAG=tsl0922/ttyd:alpine" >> $GITHUB_ENV
43
51
esac
44
52
- name : build/push docker image
45
- uses : docker/build-push-action@v5
53
+ uses : docker/build-push-action@v6
46
54
with :
47
55
context : .
48
56
file : ./Dockerfile
49
57
platforms : linux/amd64,linux/arm/v7,linux/arm64,linux/s390x
50
58
push : true
51
- tags : ${{ env.DOCKER_TAG }}
59
+ tags : |
60
+ ${{ env.DOCKER_TAG }}
61
+ ghcr.io/${{ env.ALPINE_TAG }}
52
62
- name : build/push docker image (alpine)
53
- uses : docker/build-push-action@v5
63
+ uses : docker/build-push-action@v6
54
64
with :
55
65
context : .
56
66
file : ./Dockerfile.alpine
57
67
platforms : linux/amd64,linux/arm/v7,linux/arm64,linux/s390x
58
68
push : true
59
- tags : ${{ env.ALPINE_TAG }}
69
+ tags : |
70
+ ${{ env.ALPINE_TAG }}
71
+ ghcr.io/${{ env.ALPINE_TAG }}
You can’t perform that action at this time.
0 commit comments