Skip to content

Commit

Permalink
Workflow Update
Browse files Browse the repository at this point in the history
Updated workflow to push to personal dockerhub. Requirements update as well
moyito2604 committed Sep 9, 2024
1 parent 6781a04 commit 31c590e
Showing 3 changed files with 18 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/workflows/Docker-package.yaml
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ on:

env:
IMAGE: code-liberation-front/dbarchive
DKRIMAGE: moyito2604/dbarchive
VERSION: 1.0.0

jobs:
@@ -28,6 +29,12 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PASS }}

- name: Log in to Docker Hub
uses: docker/login-action@v3.1.0
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and Push new Stable Image
uses: docker/build-push-action@v5.3.0
with:
@@ -36,6 +43,8 @@ jobs:
tags: |
ghcr.io/${{ env.IMAGE }}:${{ env.VERSION }}
ghcr.io/${{ env.IMAGE }}:latest
${{ env.DKRIMAGE }}:${{ env.VERSION }}
${{ env.DKRIMAGE }}:latest
cache-from: type=registry,ref=ghcr.io/${{ env.IMAGE }}:latest
cache-to: type=inline
build-args: |
9 changes: 8 additions & 1 deletion .github/workflows/Testing-package.yaml
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@ on:

env:
IMAGE: code-liberation-front/dbarchive
DKRIMAGE: moyito2604/dbarchive
VERSION: testing

jobs:
@@ -28,14 +29,20 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GH_PASS }}

- name: Log in to Docker Hub
uses: docker/login-action@v3.1.0
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_TOKEN }}

- name: Build and Push new Testing Image
uses: docker/build-push-action@v5.3.0
with:
platforms: linux/amd64
push: true
tags: |
ghcr.io/${{ env.IMAGE }}:${{ env.VERSION }}
${{ env.IMAGE }}:${{ env.VERSION }}
${{ env.DKRIMAGE }}:${{ env.VERSION }}
cache-from: type=registry,ref=ghcr.io/${{ env.IMAGE }}:${{ env.VERSION }}
cache-to: type=inline
build-args: |
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@ psycopg==3.2.1
psycopg-binary==3.2.1
PyYAML==6.0.2
typing_extensions==4.12.2
APScheduler==3.10.4

0 comments on commit 31c590e

Please sign in to comment.