Skip to content

Commit 63d63df

Browse files
committed
Publish to dockerhub
1 parent 5e2a223 commit 63d63df

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/ci.yaml

Lines changed: 36 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,49 @@ on:
99
jobs:
1010
test:
1111
name: Test
12-
runs-on: [self-hosted, linux]
12+
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
1515
- name: Run tests
1616
run: docker build --build-arg TARGETPLATFORM=linux/amd64 --target test .
1717

1818
build:
1919
name: Build
20-
runs-on: [self-hosted, linux]
20+
runs-on: ubuntu-latest
2121
needs: test
2222
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
2552
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

Comments
 (0)