Use proven Gitea Actions pattern from working workflow
Some checks failed
Build and Push Docker Image / docker (push) Failing after 1m32s
Some checks failed
Build and Push Docker Image / docker (push) Failing after 1m32s
Switch to the pattern that works on other server: - Run directly on ubuntu-latest (no container) - Use docker/login-action@v3 - Use docker/setup-buildx-action@v3 - Use docker/build-push-action@v6 This matches the working workflow from another repository and should work with the Gitea runner configuration. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
5a2a1c47da
commit
47fb07a7d2
@ -6,34 +6,29 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: docker:24-dind
|
|
||||||
options: --privileged
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
run: |
|
uses: actions/checkout@v4
|
||||||
apk add --no-cache git
|
|
||||||
git clone https://code.puffinoffset.com/matt/puffin-app.git .
|
|
||||||
git checkout ${{ github.sha }}
|
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
run: |
|
uses: docker/login-action@v3
|
||||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login code.puffinoffset.com -u ${{ github.actor }} --password-stdin
|
with:
|
||||||
|
registry: code.puffinoffset.com
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build Docker image
|
- name: Set up Docker Buildx
|
||||||
run: |
|
uses: docker/setup-buildx-action@v3
|
||||||
docker build -t code.puffinoffset.com/matt/puffin-app:latest \
|
|
||||||
-t code.puffinoffset.com/matt/puffin-app:main-${{ github.sha }} \
|
|
||||||
.
|
|
||||||
|
|
||||||
- name: Push Docker images
|
- name: Build and push Docker image
|
||||||
run: |
|
uses: docker/build-push-action@v6
|
||||||
docker push code.puffinoffset.com/matt/puffin-app:latest
|
with:
|
||||||
docker push code.puffinoffset.com/matt/puffin-app:main-${{ github.sha }}
|
context: .
|
||||||
|
platforms: linux/amd64
|
||||||
- name: Show image info
|
push: true
|
||||||
run: |
|
tags: |
|
||||||
docker images | grep puffin-app
|
code.puffinoffset.com/matt/puffin-app:latest
|
||||||
|
code.puffinoffset.com/matt/puffin-app:main-${{ github.sha }}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user