|
9 | 9 | jobs:
|
10 | 10 | test:
|
11 | 11 | name: Test
|
12 |
| - runs-on: [self-hosted, linux] |
| 12 | + runs-on: ubuntu-latest |
13 | 13 | steps:
|
14 | 14 | - uses: actions/checkout@v4
|
15 | 15 | - name: Run tests
|
16 | 16 | run: docker build --build-arg TARGETPLATFORM=linux/amd64 --target test .
|
17 | 17 |
|
18 | 18 | build:
|
19 | 19 | name: Build
|
20 |
| - runs-on: [self-hosted, linux] |
| 20 | + runs-on: ubuntu-latest |
21 | 21 | needs: test
|
22 | 22 | steps:
|
23 |
| - - uses: actions/checkout@v4 |
24 |
| - - uses: secondlife/action-build-docker@v1 |
| 23 | + - name: Checkout |
| 24 | + uses: actions/checkout@v4 |
| 25 | + |
| 26 | + - name: Docker meta |
| 27 | + id: meta |
| 28 | + uses: docker/metadata-action@v5 |
| 29 | + with: |
| 30 | + images: lindenlab/nginx-proxy |
| 31 | + tags: | |
| 32 | + type=ref,event=branch |
| 33 | + type=ref,event=pr |
| 34 | + type=semver,pattern={{version}} |
| 35 | + type=semver,pattern={{major}}.{{minor}} |
| 36 | + type=semver,pattern={{major}} |
| 37 | +
|
| 38 | + - name: Set up QEMU |
| 39 | + uses: docker/setup-qemu-action@v3 |
| 40 | + |
| 41 | + - name: Set up Docker Buildx |
| 42 | + uses: docker/setup-buildx-action@v3 |
| 43 | + |
| 44 | + - name: Login to Docker Hub |
| 45 | + uses: docker/login-action@v3 |
| 46 | + with: |
| 47 | + username: ${{ secrets.SHARED_DOCKERHUB_USER }} |
| 48 | + password: ${{ secrets.SHARED_DOCKERHUB_TOKEN }} |
| 49 | + |
| 50 | + - name: Build and push |
| 51 | + uses: docker/build-push-action@v5 |
25 | 52 | with:
|
26 |
| - image: platform/nginx-proxy |
27 |
| - platforms: linux/amd64,linux/arm64 |
28 |
| - promote: ${{ startsWith(github.ref, 'refs/tags/v') }} |
29 |
| - jfrog-token: ${{ secrets.SHARED_JFROG_TOKEN }} |
| 53 | + context: . |
| 54 | + push: ${{ startsWith(github.ref, 'refs/tags/v') }} |
| 55 | + tags: ${{ steps.meta.outputs.tags }} |
| 56 | + labels: ${{ steps.meta.outputs.labels }} |
| 57 | + |
0 commit comments