-
-
Notifications
You must be signed in to change notification settings - Fork 113
48 lines (40 loc) · 1.25 KB
/
release.yml
File metadata and controls
48 lines (40 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Versioned release
on:
release:
types:
- published
- edited
jobs:
build:
name: CI Build
runs-on: ubuntu-22.04
steps:
- name: Git Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Setup testing environment
run: |
sudo pip3 install -r requirements-test.txt
- name: Build Images
run: make compose-build nfs-build
# 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@v3
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_SECRET }}
- name: Release to Docker Hub
run: |
make release USER=docker.io/openwisp
- name: Login to GitLab Container Registry
uses: docker/login-action@v3
with:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_DOCKER_REGISTRY_USER }}
password: ${{ secrets.GITLAB_DOCKER_REGISTRY_TOKEN }}
- name: Release to GitLab Container Registry
run: |
make release SKIP_BUILD=true