Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CI #551

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
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
13 changes: 10 additions & 3 deletions .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,13 @@ on:

permissions:
contents: read
packages: write

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 +35,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 Down Expand Up @@ -60,13 +67,13 @@ jobs:
}

- name: Login to DockerHub
if: github.event_name != 'pull_request'
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
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