Skip to content

Commit

Permalink
Merge pull request #63 from B-urb/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
B-urb authored Jun 18, 2024
2 parents 97c508b + 7b6e125 commit feb1575
Show file tree
Hide file tree
Showing 9 changed files with 380 additions and 42 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ jobs:
build-docker:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
Expand All @@ -63,12 +66,25 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push to GitHub Container Registry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
release:
runs-on: ubuntu-latest
permissions:
Expand Down
18 changes: 17 additions & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ jobs:
build-docker:
needs: build
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
if: ${{ github.ref }} != 'master' && ${{ github.ref }} != 'development'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand All @@ -76,11 +79,24 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
- name: Build and push to GitHub Container Registry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64

18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ jobs:
build-docker:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
if: ${{ github.ref }} != 'master' && ${{ github.ref }} != 'development'
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
Expand All @@ -60,9 +63,22 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ secrets.DOCKERHUB_USERNAME }}/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
- name: Build and push to GitHub Container Registry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/b-urb/doclytics:${{ env.BRANCH_NAME }}
platforms: linux/amd64,linux/arm64
Loading

0 comments on commit feb1575

Please sign in to comment.