Skip to content

Commit

Permalink
Release 1.0.0a1
Browse files Browse the repository at this point in the history
  • Loading branch information
ericof committed Jul 11, 2024
1 parent fbbabf6 commit bae4723
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 65 deletions.
61 changes: 4 additions & 57 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,66 +23,13 @@ jobs:
id: vars
run: |
echo 'BASE_TAG=sha-'$(git rev-parse --short HEAD) >> $GITHUB_OUTPUT
echo "PLONE_VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT
python3 -c 'import json; data = json.load(open("./mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") or "latest")' >> $GITHUB_OUTPUT
echo "PLONE_VERSION=$(cat backend/version.txt)" >> $GITHUB_OUTPUT
python3 -c 'import json; data = json.load(open("./frontend/mrs.developer.json")); print("VOLTO_VERSION=" + data["core"].get("tag") or "latest")' >> $GITHUB_OUTPUT
- name: Test vars
run: |
echo 'BASE_TAG=${{ steps.vars.outputs.BASE_TAG }}'
echo "PLONE_VERSION=${{ steps.vars.outputs.PLONE_VERSION }}'
echo 'VOLTO_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }}
backend:
runs-on: ubuntu-latest
needs:
- config
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_NAME_PREFIX }}-backend
labels: |
org.label-schema.docker.cmd=docker run -d -p 8080:8080 ${{ env.IMAGE_NAME_PREFIX }}-backend:latest
flavor:
latest=false
tags: |
type=ref,event=branch
type=sha
type=pep440,pattern={{version}}
type=pep440,pattern={{major}}.{{minor}}
type=pep440,pattern={{major}}
type=raw,value=latest,enable={{is_default_branch}}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
platforms: linux/amd64
context: backend
file: backend/Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: |
PLONE_VERSION=${{ needs.config.outputs.PLONE_VERSION }}
echo "PLONE_VERSION=${{ steps.vars.outputs.PLONE_VERSION }}"
echo 'VOLTO_VERSION=${{ steps.vars.outputs.VOLTO_VERSION }}'
backend:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions backend/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
-->

<!-- towncrier release notes start -->

## 1.0.0a1 (2024-07-10)

No significant changes.
1 change: 0 additions & 1 deletion backend/news/#initial.feature

This file was deleted.

2 changes: 1 addition & 1 deletion backend/src/plonegovbr/intranet/about.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0a0"
__version__ = "1.0.0a1"
15 changes: 15 additions & 0 deletions frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changelog

<!-- You should *NOT* be adding new change log entries to this file.
You should create a file in the news directory instead.
For helpful instructions, please see:
https://6.docs.plone.org/volto/developer-guidelines/contributing.html#create-a-pull-request
-->

<!-- towncrier release notes start -->

## 1.0.0-alpha.1 (2024-07-10)

### Feature

- Implementação inicial do PortalBrasil: Intranet [@ericof] [##initial](https://github.com/plonegovbr/portalbrasil-intranet/issue/#initial)
6 changes: 3 additions & 3 deletions frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "portalbrasil-intranet-dev",
"version": "1.0.0-alpha.0",
"description": "Solução de Intranet construída com Plone",
"version": "1.0.0-alpha.1",
"description": "Solu\u00e7\u00e3o de Intranet constru\u00edda com Plone",
"author": "PloneGov-BR",
"homepage": "https://github.com/plonegovbr/portalbrasil-intranet",
"license": "MIT",
Expand Down Expand Up @@ -41,4 +41,4 @@
"mrs-developer": "^2.2.0"
},
"packageManager": "[email protected]"
}
}
6 changes: 6 additions & 0 deletions frontend/packages/portalbrasil-intranet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
-->

<!-- towncrier release notes start -->

## 1.0.0-alpha.1 (2024-07-10)

### Feature

- Implementação inicial do PortalBrasil: Intranet [@ericof] [##initial](https://github.com/plonegovbr/portalbrasil-intranet/issue/#initial)

This file was deleted.

2 changes: 1 addition & 1 deletion frontend/packages/portalbrasil-intranet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@plonegovbr/portalbrasil-intranet",
"version": "1.0.0-alpha.0",
"version": "1.0.0-alpha.1",
"description": "Solução de Intranet construída com Plone",
"main": "src/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0a0
1.0.0a1

0 comments on commit bae4723

Please sign in to comment.