Skip to content

[ci] Updated Gitlab registry username #96

[ci] Updated Gitlab registry username

[ci] Updated Gitlab registry username #96

Workflow file for this run

---
name: Automation Tests
on:
push:
branches:
- master
jobs:
build:
name: CD Build
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v2
- name: Install Testing Requirements
run: |
sudo pip install -U pip setuptools wheel
sudo pip install -r requirements-test.txt
- name: Install Testing Requirements
run: |
sudo pip install -r requirements-test.txt
sudo curl -sL -o /bin/hadolint "https://github.com/hadolint/hadolint/releases/download/v2.12.0/hadolint-Linux-x86_64"
sudo chmod +x /bin/hadolint
- name: QA checks
run: ./run-qa-checks
- name: Setup
run: |
echo "127.0.0.1 dashboard.openwisp.org api.openwisp.org" | sudo tee -a /etc/hosts
# disable metric collection during builds
sed -i 's/METRIC_COLLECTION=True/METRIC_COLLECTION=False/' .env
# the following action is equivalent to
# echo "$DOCKER_HUB_SECRET" | docker login --username "$DOCKER_HUB_USERNAME" --password-stdin
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_SECRET }}
- name: Build & Publish to Docker Hub
run: |
make publish TAG=edge USER=docker.io/openwisp
env:
SELENIUM_HEADLESS: 1
- name: Login to GitLab Container Registry
uses: docker/login-action@v1
with:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_DOCKER_REGISTRY_USER }}
password: ${{ secrets.GITLAB_DOCKER_REGISTRY_TOKEN }}
# Skip image builds and tests since they were done when
# publishing to Docker Hub
- name: Build & Publish to GitLab Container Registry
run: |
make publish TAG=edge SKIP_BUILD=true SKIP_TESTS=true