File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,22 +13,17 @@ jobs:
1313 - name : Checkout code
1414 uses : actions/checkout@v4
1515
16- - name : Set up Docker Buildx
17- uses : docker/setup-buildx-action@v3
18-
1916 - name : Log in to GitHub Container Registry
2017 uses : docker/login-action@v3
2118 with :
2219 registry : ghcr.io
2320 username : ${{ github.actor }}
2421 password : ${{ secrets.GHCR_TOKEN }}
2522
26- - name : Build and push multiarch image
27- env :
28- SHORT_SHA : ${{ github.sha }}
23+ - name : Build and push image
2924 run : |
30- SHORT_SHA=${SHORT_SHA ::7}
31- docker buildx build \
32- --platform linux/amd64,linux/arm64/v8 --push \
33- -t ghcr.io/voidcontests/runner:$SHORT_SHA \
34- -t ghcr.io/voidcontests/runner:latest .
25+ SHORT_SHA=${GITHUB_SHA ::7}
26+ docker build -t ghcr.io/voidcontests/runner:$SHORT_SHA \
27+ -t ghcr.io/voidcontests/runner:latest .
28+ docker push ghcr.io/voidcontests/runner:$SHORT_SHA
29+ docker push ghcr.io/voidcontests/runner:latest
You can’t perform that action at this time.
0 commit comments