mirror of
https://github.com/mediacms-io/mediacms.git
synced 2024-11-22 08:13:33 +01:00
pass secrets to workflow
This commit is contained in:
parent
a1962d4b32
commit
1fd04ca947
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -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'
|
||||||
|
3
.github/workflows/docker-build-push.yml
vendored
3
.github/workflows/docker-build-push.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user