Skip to content

Commit

Permalink
fix(cicd): try to fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xutyxd committed Oct 19, 2024
1 parent e66aabf commit 022948a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:
- name: Build and tag Docker image
run: |
git fetch --tags
version=$(echo $(git describe --tags --abbrev=0))
version=$(echo $(git tag --sort=-creatordate | head -n 1))
echo $version
docker buildx build -t xutyxd/photron:$version . --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --load
docker tag xutyxd/photron:$version xutyxd/photron:latest
docker buildx build -t ${{ secrets.DOCKER_USERNAME }}/photron:$version . --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --load
docker tag ${{ secrets.DOCKER_USERNAME }}/photron:$version ${{ secrets.DOCKER_USERNAME }}/photron:latest
- name: Push image to Docker Hub
run: |
version=$(echo $(git describe --tags --abbrev=0))
docker push xutyxd/photron:$version
docker push xutyxd/photron:latest
version=$(echo $(git tag --sort=-creatordate | head -n 1))
docker push ${{ secrets.DOCKER_USERNAME }}/photron:$version
docker push ${{ secrets.DOCKER_USERNAME }}/photron:latest

0 comments on commit 022948a

Please sign in to comment.