Skip to content

Commit 093d625

Browse files
authored
Split gh actions to build the PR and push to ghcr (#336)
1 parent 0440b44 commit 093d625

File tree

4 files changed

+42
-39
lines changed

4 files changed

+42
-39
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Build and push edge tag
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths-ignore:
8+
- 'docs/**'
9+
- 'helm/**'
10+
- 'assets/**'
11+
- '**.md'
12+
13+
jobs:
14+
docker:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
20+
- name: Login to Docker Hub
21+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
22+
with:
23+
registry: ${{ env.REGISTRY }}
24+
username: ${{ github.actor }}
25+
password: ${{ secrets.GITHUB_TOKEN }}
26+
27+
- name: Extract metadata (tags, labels) for Docker
28+
id: meta
29+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
30+
with:
31+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
32+
33+
- name: Build and push
34+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
35+
with:
36+
context: .
37+
file: ./Dockerfile
38+
push: true
39+
tags: ${{ steps.meta.outputs.tags }}
40+
labels: ${{ steps.meta.outputs.labels }}

.github/workflows/integration-test.yaml renamed to .github/workflows/integration-test-run.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919
- name: Start compose
20-
run: docker-compose up --build --exit-code-from quest quest
20+
run: docker-compose up --exit-code-from quest quest
2121
- name: Stop compose
2222
if: always()
2323
run: docker-compose down

Dockerfile.ubi

Lines changed: 0 additions & 35 deletions
This file was deleted.

docker-compose.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ services:
2727
- parseable-internal
2828

2929
parseable:
30-
build:
31-
context: .
32-
dockerfile: Dockerfile
30+
image: ghcr.io/parseablehq/parseable:main
3331
command: ["parseable", "s3-store"]
3432
ports:
3533
- 8000

0 commit comments

Comments
 (0)