-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[change] Updated Makefile to use "edge" label by default #351
Added workflow for tagging images with version on release Closes #351
- Loading branch information
Showing
2 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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@v4 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters