Skip to content

Commit

Permalink
fix: docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgrittner committed Aug 19, 2024
1 parent 3e38e2f commit 6e109a9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 34 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish-docker-hub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish Docker Images
on:
workflow_call:
inputs:
os:
description: OS
required: false
default: ubuntu-latest
type: string
git-ref:
description: Git branch or ref
required: false
default: ""
type: string
jobs:
publish-to-docker-hub:
name: Publish Docker Images
runs-on: ${{ inputs.os }}
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
repository: ${{ github.repository }}
ref: ${{ github.event.pull_request.head.sha }}
- name: Login to docker hub
uses: actions-hub/docker/login@master
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Use Docker CLI
uses: actions-hub/docker/cli@master
- name: Build and push Docker images
run: cd docker && ./release_images.sh
33 changes: 0 additions & 33 deletions .github/workflows/publish-docker-images.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ jobs:
if: github.repository == 'Admyral-Security/admyral'
needs:
- setup-and-test
uses: ./.github/workflows/publish-docker-images.yml
uses: ./.github/workflows/publish-docker-hub.yml
secrets: inherit

0 comments on commit 6e109a9

Please sign in to comment.