pass secrets to workflow

This commit is contained in:
Markos Gogoulos 2023-06-28 15:32:32 +03:00
parent a1962d4b32
commit 1fd04ca947
2 changed files with 3 additions and 1 deletions

View file

@ -15,5 +15,6 @@ jobs:
needs: [pre-commit]
release:
uses: ./.github/workflows/docker-build-push.yml
secrets: inherit # pass all secrets
needs: [test]
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'

View file

@ -36,10 +36,11 @@ jobs:
org.opencontainers.image.url=https://mediacms.io/
org.opencontainers.image.source=https://github.com/mediacms-io/mediacms
org.opencontainers.image.licenses=AGPL-3.0
- name: Login to Docker Hub
uses: docker/login-action@v2.2.0
with:
username: mediacms
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push