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] needs: [pre-commit]
release: release:
uses: ./.github/workflows/docker-build-push.yml uses: ./.github/workflows/docker-build-push.yml
secrets: inherit # pass all secrets
needs: [test] needs: [test]
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' 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.url=https://mediacms.io/
org.opencontainers.image.source=https://github.com/mediacms-io/mediacms org.opencontainers.image.source=https://github.com/mediacms-io/mediacms
org.opencontainers.image.licenses=AGPL-3.0 org.opencontainers.image.licenses=AGPL-3.0
- name: Login to Docker Hub - name: Login to Docker Hub
uses: docker/login-action@v2.2.0 uses: docker/login-action@v2.2.0
with: with:
username: mediacms username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push - name: Build and push