mirror of
https://github.com/benbusby/whoogle-search.git
synced 2026-03-11 08:54:34 +00:00
fix: only push to ghcr
This commit is contained in:
parent
0b2d523506
commit
b2c8ee19da
1 changed files with 5 additions and 10 deletions
15
.github/workflows/buildx.yml
vendored
15
.github/workflows/buildx.yml
vendored
|
|
@ -24,11 +24,6 @@ jobs:
|
|||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
with:
|
||||
version: latest
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
- name: Login to ghcr.io
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
|
|
@ -36,15 +31,15 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: build and push the image
|
||||
if: startsWith(github.ref, 'refs/heads/main') && github.actor == 'benbusby'
|
||||
if: startsWith(github.ref, 'refs/heads/main') && github.actor == 'royaloughtness'
|
||||
run: |
|
||||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
docker buildx ls
|
||||
docker buildx build --push \
|
||||
--tag benbusby/whoogle-search:latest \
|
||||
--tag royaloughtness/whoogle-search:latest \
|
||||
--platform linux/amd64,linux/arm64 .
|
||||
docker buildx build --push \
|
||||
--tag ghcr.io/benbusby/whoogle-search:latest \
|
||||
--tag ghcr.io/royaloughtness/whoogle-search:latest \
|
||||
--platform linux/amd64,linux/arm64 .
|
||||
- name: build and push tag
|
||||
if: startsWith(github.ref, 'refs/tags')
|
||||
|
|
@ -52,8 +47,8 @@ jobs:
|
|||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||
docker buildx ls
|
||||
docker buildx build --push \
|
||||
--tag benbusby/whoogle-search:${GITHUB_REF#refs/*/v}\
|
||||
--tag royaloughtness/whoogle-search:${GITHUB_REF#refs/*/v}\
|
||||
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
||||
docker buildx build --push \
|
||||
--tag ghcr.io/benbusby/whoogle-search:${GITHUB_REF#refs/*/v}\
|
||||
--tag ghcr.io/royaloughtness/whoogle-search:${GITHUB_REF#refs/*/v}\
|
||||
--platform linux/amd64,linux/arm/v7,linux/arm64 .
|
||||
|
|
|
|||
Loading…
Reference in a new issue