Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ permissions:

jobs:
build:
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME }}
runs-on: ubuntu-latest
steps:
# Get the repository's code
Expand All @@ -31,7 +34,10 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: fiware/wirecloud, quay.io/fiware/wirecloud
images: |
${{ env.DOCKERHUB_USERNAME && 'fiware/wirecloud' || '' }}
${{ env.QUAY_USERNAME && 'quay.io/fiware/wirecloud' || '' }}
ghcr.io/${{ github.repository }}

# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
Expand All @@ -58,15 +64,21 @@ jobs:
"var-cache-apt": "/var/cache/apt",
"root-cache-pip": "/root/.cache/pip"
}

- name: Login to DockerHub
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub
if: github.event_name != 'pull_request' && env.DOCKERHUB_USERNAME
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Quay.io
if: github.event_name != 'pull_request'
if: github.event_name != 'pull_request' && env.QUAY_USERNAME
uses: docker/login-action@v3
with:
registry: quay.io
Expand Down Expand Up @@ -105,4 +117,4 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
cache-to: type=gha,mode=max
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
working-directory: ./src
run: |
npm ci
npm install grunt-cli -g
grunt ci
- name: Coveralls Parallel
uses: coverallsapp/github-action@release/v2
Expand Down
Loading