Skip to content

Commit eb9be97

Browse files
authored
Merge pull request #209 from Nfactor26/pixel-persistence-to-docker-hub
publish pixel persistence service to docker hub
2 parents fe42aad + ec06e1f commit eb9be97

File tree

5 files changed

+41
-5
lines changed

5 files changed

+41
-5
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish pixel-persistence service to docker hub on tag push to main
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
10+
build-and-publish-to-docker-hub:
11+
runs-on: ubuntu-latest
12+
environment: docker-hub
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v3
16+
- name: Extract metadata (tags, labels) for Docker
17+
id: meta
18+
uses: docker/metadata-action@v3
19+
with:
20+
images: ${{ secrets.DOCKERHUB_USERNAME }}/pixel-persistence
21+
- name: Build docker image locally
22+
uses: docker/build-push-action@v2
23+
with:
24+
context: ./
25+
file: ./src/Pixel.Persistence.Services.Api/Dockerfile
26+
push: false
27+
tags: pixel-persistence:${{ github.ref_name }}
28+
labels: ${{ steps.meta.outputs.labels }}
29+
load: true"
30+
- name: Login to docker hub
31+
uses: docker/login-action@v1
32+
with:
33+
username: ${{ secrets.DOCKERHUB_USERNAME }}
34+
password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
- name: Push image to docker hub
36+
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/pixel-persistence:${{ github.ref_name }}

.github/workflows/build-pixel-designer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ jobs:
7373
- name: Upload pixel-designer artifacts
7474
uses: actions/upload-artifact@v3
7575
with:
76-
name: pixel-designer-${{ inputs.target-os }}
76+
name: pixel-designer-${{ inputs.target-runtime }}
7777
path: .builds/release/designer/${{ inputs.target-framework }}/${{ inputs.target-runtime }}

.github/workflows/build-pixel-runner.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ jobs:
7373
- name: Upload pixel-runner artifacts
7474
uses: actions/upload-artifact@v3
7575
with:
76-
name: pixel-runner-${{ inputs.target-os }}
76+
name: pixel-runner-${{ inputs.target-runtime }}
7777
path: .builds/release/runner/${{ inputs.target-framework }}/${{ inputs.target-runtime }}

docker-compose.override.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ services:
1515
MONGO_INITDB_ROOT_USERNAME: mongoadmin
1616
MONGO_INITDB_ROOT_PASSWORD: mongopass
1717

18-
pixel-persistence-service:
18+
pixel-persistence:
1919
container_name: pixel_persistence_service
2020
env_file:
2121
- ./.config/persistence.env

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
version: '3.4'
22

33
services:
4-
pixel-persistence-service:
5-
image: ${DOCKER_REGISTRY-}pixel-persistence-service
4+
pixel-persistence:
5+
image: ${DOCKER_REGISTRY-}pixel-persistence
66
build:
77
context: .
88
dockerfile: src/Pixel.Persistence.Services.Api/Dockerfile

0 commit comments

Comments
 (0)