Browse Source
CI: push images to Docker Hub ...
... if the CI is running for `master` branch and current repo is `citra-emu/build-environments`
master
liushuyu
4 years ago
No known key found for this signature in database
GPG Key ID: 23D1CE4534419437
1 changed files with
7 additions and
1 deletions
-
.github/workflows/ci.yml
|
|
@ -16,9 +16,15 @@ jobs: |
|
|
- uses: actions/checkout@v2 |
|
|
- uses: actions/checkout@v2 |
|
|
- uses: docker/setup-buildx-action@v1 |
|
|
- uses: docker/setup-buildx-action@v1 |
|
|
name: Setup Docker BuildX system |
|
|
name: Setup Docker BuildX system |
|
|
|
|
|
- name: Login to DockerHub |
|
|
|
|
|
uses: docker/login-action@v1 |
|
|
|
|
|
if: (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/build-environments') |
|
|
|
|
|
with: |
|
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }} |
|
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }} |
|
|
- uses: docker/build-push-action@v2 |
|
|
- uses: docker/build-push-action@v2 |
|
|
name: Build image |
|
|
name: Build image |
|
|
with: |
|
|
with: |
|
|
push: false |
|
|
|
|
|
|
|
|
push: ${{ (github.ref == 'refs/heads/master') && (github.repository == 'citra-emu/build-environments') }} |
|
|
context: ${{ matrix.image }} |
|
|
context: ${{ matrix.image }} |
|
|
tags: citraemu/build-environments:${{ matrix.image }} |
|
|
tags: citraemu/build-environments:${{ matrix.image }} |