Skip to content

Commit

Permalink
Adjust CI workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
scossu committed May 6, 2024
1 parent e4449ff commit b4eb47d
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 17 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/push-app-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Push image to Docker Hub.
on:
push:
tags:
- "v*.*.*"

env:
DOCKER_USER: lcnetdev
DOCKER_PASSWORD: ${{secrets.DOCKER_HUB}}
REPO_NAME: scriptshifter

jobs:
push-image-to-docker-hub:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Build the Docker image
run: >
docker build -f 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
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Push image to Docker Hub.
name: Push base image to Docker Hub. Only on minor/major version update.
on:
push:
tags:
- "v*.*.*"
- "v*.*.0"

env:
DOCKER_USER: lcnetdev
DOCKER_PASSWORD: ${{secrets.DOCKER_HUB}}
REPO_NAME: scriptshifter
REPO_NAME: scriptshifter-base

jobs:
push-image-to-docker-hub:
Expand All @@ -32,7 +32,8 @@ jobs:

- name: Build the Docker image
run: >
docker build . --tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
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
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/push-test-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,11 @@ jobs:
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 . --tag $DOCKER_USER/$REPO_NAME:test
run: >
docker build -f Dockerfile .
--tag $DOCKER_USER/$REPO_NAME:${{ github.ref_name }}
--tag $DOCKER_USER/$REPO_NAME:test
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand Down

0 comments on commit b4eb47d

Please sign in to comment.