-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.08 KB
/
docker_latest.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
name: Publish Docker images for dev branch
on:
push:
branches: [ "dev", "test_docker_deployment" ]
# pull_request:
# branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true # This ensures submodules are included
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the Docker image for CLI
run: |
docker build -t mercury_cli . -f DockerfileCLI --tag mercury_cli:latest
docker tag mercury_cli:latest ghcr.io/uow-atm/mercury/mercury_cli:latest
docker push ghcr.io/uow-atm/mercury/mercury_cli:latest
- name: Build the Docker image for Notebook
run: |
docker build -t mercury_nb . -f DockerfileNotebook --tag mercury_nb:latest
docker tag mercury_nb:latest ghcr.io/uow-atm/mercury/mercury_nb:latest
docker push ghcr.io/uow-atm/mercury/mercury_nb:latest