-
Notifications
You must be signed in to change notification settings - Fork 6
46 lines (39 loc) · 1.23 KB
/
push-base-image.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
36
37
38
39
40
41
42
43
44
45
46
name: Push base image
on:
push:
tags:
- "v*.*.0"
env:
DOCKER_USER: lcnetdev
DOCKER_PASSWORD: ${{secrets.DOCKER_HUB}}
REPO_NAME: scriptshifter-base
jobs:
push-image-to-docker-hub:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: checkout yiddish submodules (1/2)
uses: actions/checkout@v4
with:
repository: ibleaman/loshn-koydesh-pronunciation
path: ext/yiddish/yiddish/submodules/loshn-koydesh-pronunciation
- name: checkout yiddish submodules (2/2)
uses: actions/checkout@v4
with:
repository: ibleaman/hasidify_lexicon
path: ext/yiddish/yiddish/submodules/hasidify_lexicon
- name: Build the Docker image
run: >
docker build -f scriptshifter_base.Dockerfile .
--tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
--tag $DOCKER_USER/$REPO_NAME:latest
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: lcnetdev
password: ${{ secrets.DOCKER_HUB }}
- name: Push to Docker Hub
run: docker push $DOCKER_USER/$REPO_NAME --all-tags