-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.08 KB
/
dockerimage-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Reference:https://github.com/marketplace/actions/build-and-push-docker-images
name: Space Xplorer Docker build
on:
push:
branches: [ main, beta, develop ]
jobs:
push_to_registries:
name: Pushes Docker image to Github Registry
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Push Migrations Image to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: sanctumlabs/space-xplorer-server/space-xplorer-migrations
dockerfile: "Dockerfile.migrations"
tag_with_ref: true
- name: Push API Image to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: sanctumlabs/space-xplorer-server/space-xplorer-api
dockerfile: "Dockerfile"
tag_with_ref: true