File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 98
98
- name : Checkout repository
99
99
uses : actions/checkout@v3
100
100
101
+ - name : Set up Docker Buildx
102
+ uses : docker/setup-buildx-action@v2
103
+
101
104
- name : Login to DockerHub
102
105
uses : docker/login-action@v2
103
106
with :
@@ -129,7 +132,7 @@ jobs:
129
132
uses : docker/build-push-action@v3
130
133
with :
131
134
context : .
132
- # platforms: linux/amd64,linux/arm64
135
+ load : true
133
136
tags : ${{ steps.meta.outputs.tags }}
134
137
labels : ${{ steps.meta.outputs.labels }}
135
138
@@ -140,9 +143,9 @@ jobs:
140
143
docker run --rm -i -v ${PWD}:/docs ${{ github.event.repository.full_name }}:${{ steps.meta.outputs.version }} build
141
144
142
145
- name : Publish Docker image
143
- env :
144
- DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
145
- DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
146
- run : |
147
- docker push --all- tags ${{ github.event.repository.full_name }}
148
- docker push --all-tags ghcr.io/ ${{ github.event.repository.full_name }}
146
+ uses : docker/build-push-action@v3
147
+ with :
148
+ context : .
149
+ push : true
150
+ tags : ${{ steps.meta.outputs.tags }}
151
+ labels : ${{ steps.meta.outputs.labels }}
You can’t perform that action at this time.
0 commit comments