aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-10-20 23:26:53 +0300
committerEgor Tensin <egor@tensin.name>2026-10-20 23:26:53 +0300
commitfbe691a46fec47edc2c918558db3e4e2eaa14995 (patch)
tree156496e60531d539e8dcf9da70dae50571fab2b1
parentworkflows: remove secrets that are not actually secret (diff)
downloadcgitize-fbe691a46fec47edc2c918558db3e4e2eaa14995.tar.gz
cgitize-fbe691a46fec47edc2c918558db3e4e2eaa14995.zip
workflows: drop some quotes
-rw-r--r--.github/workflows/ci.yml49
-rw-r--r--.github/workflows/maintenance.yml4
2 files changed, 27 insertions, 26 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5fe36fd..7d93ee1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -30,14 +30,14 @@ jobs:
- '3.12'
- '3.13'
- '3.14'
- name: 'Test / ${{ matrix.python-version }}'
+ name: Test / ${{ matrix.python-version }}
env:
CGITIZE_GITHUB_USERNAME: cgitize-test
- CGITIZE_GITHUB_TOKEN: '${{ secrets.CGITIZE_GITHUB_TOKEN }}'
- CGITIZE_BITBUCKET_EMAIL: '${{ secrets.CGITIZE_BITBUCKET_EMAIL }}'
- CGITIZE_BITBUCKET_TOKEN: '${{ secrets.CGITIZE_BITBUCKET_TOKEN }}'
+ CGITIZE_GITHUB_TOKEN: ${{ secrets.CGITIZE_GITHUB_TOKEN }}
+ CGITIZE_BITBUCKET_EMAIL: ${{ secrets.CGITIZE_BITBUCKET_EMAIL }}
+ CGITIZE_BITBUCKET_TOKEN: ${{ secrets.CGITIZE_BITBUCKET_TOKEN }}
CGITIZE_GITLAB_USERNAME: cgitize-test
- CGITIZE_GITLAB_TOKEN: '${{ secrets.CGITIZE_GITLAB_TOKEN }}'
+ CGITIZE_GITLAB_TOKEN: ${{ secrets.CGITIZE_GITLAB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v7
@@ -47,7 +47,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v7
with:
- python-version: '${{ matrix.python-version }}'
+ python-version: ${{ matrix.python-version }}
cache: pip
- name: 'Install package & dependencies'
run: pip install -q -e .
@@ -58,7 +58,7 @@ jobs:
test_docker:
runs-on: ubuntu-latest
- name: 'Test / Docker'
+ name: Test / Docker
steps:
- name: Checkout
uses: actions/checkout@v7
@@ -72,14 +72,14 @@ jobs:
- test_local
- test_docker
runs-on: ubuntu-latest
- name: 'Test / example config'
+ name: Test / example config
env:
CGITIZE_GITHUB_USERNAME: cgitize-test
- CGITIZE_GITHUB_TOKEN: '${{ secrets.CGITIZE_GITHUB_TOKEN }}'
- CGITIZE_BITBUCKET_EMAIL: '${{ secrets.CGITIZE_BITBUCKET_EMAIL }}'
- CGITIZE_BITBUCKET_TOKEN: '${{ secrets.CGITIZE_BITBUCKET_TOKEN }}'
+ CGITIZE_GITHUB_TOKEN: ${{ secrets.CGITIZE_GITHUB_TOKEN }}
+ CGITIZE_BITBUCKET_EMAIL: ${{ secrets.CGITIZE_BITBUCKET_EMAIL }}
+ CGITIZE_BITBUCKET_TOKEN: ${{ secrets.CGITIZE_BITBUCKET_TOKEN }}
CGITIZE_GITLAB_USERNAME: cgitize-test
- CGITIZE_GITLAB_TOKEN: '${{ secrets.CGITIZE_GITLAB_TOKEN }}'
+ CGITIZE_GITLAB_TOKEN: ${{ secrets.CGITIZE_GITLAB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v7
@@ -94,7 +94,7 @@ jobs:
- name: Set up ssh-agent
uses: webfactory/ssh-agent@v0.10.0
with:
- ssh-private-key: '${{ secrets.SSH_KEY }}'
+ ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Integration tests
run: make test/integration
@@ -111,18 +111,19 @@ jobs:
include:
- {service: backend, file: docker/Dockerfile, image: cgitize}
- {service: frontend, context: docker/frontend, image: cgitize-frontend}
- name: 'Publish / Docker Hub / ${{ matrix.service }}'
+ name: Publish / Docker Hub / ${{ matrix.service }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
+ persist-credentials: false
submodules: recursive
# https://github.com/docker/metadata-action#semver
- id: meta
name: Docker Hub metadata
uses: docker/metadata-action@v6
with:
- images: 'egortensin/${{ matrix.image }}'
+ images: egortensin/${{ matrix.image }}
flavor: |
latest=auto
tags: |
@@ -154,22 +155,22 @@ jobs:
uses: docker/login-action@v4
with:
username: egortensin
- password: '${{ secrets.DOCKERHUB_TOKEN }}'
+ password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and publish
uses: docker/build-push-action@v7
with:
- context: '${{ matrix.context }}'
- file: '${{ matrix.file }}'
- labels: '${{ steps.meta.outputs.labels }}'
- platforms: '${{ steps.params.outputs.platforms }}'
- push: '${{ steps.params.outputs.push }}'
- tags: '${{ steps.meta.outputs.tags }}'
+ context: ${{ matrix.context }}
+ file: ${{ matrix.file }}
+ labels: ${{ steps.meta.outputs.labels }}
+ platforms: ${{ steps.params.outputs.platforms }}
+ push: ${{ steps.params.outputs.push }}
+ tags: ${{ steps.meta.outputs.tags }}
publish_pypi:
needs:
- publish_docker
runs-on: ubuntu-latest
- name: 'Publish / PyPI'
+ name: Publish / PyPI
steps:
- name: Checkout
uses: actions/checkout@v7
@@ -195,4 +196,4 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
- password: '${{ secrets.PYPI_API_TOKEN }}'
+ password: ${{ secrets.PYPI_API_TOKEN }}
diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml
index 9ee29f3..07e2267 100644
--- a/.github/workflows/maintenance.yml
+++ b/.github/workflows/maintenance.yml
@@ -18,11 +18,11 @@ jobs:
# I think that by default, pushes don't trigger other workflows, and
# you need a separate token for that:
# https://docs.github.com/en/actions/how-tos/write-workflows/choose-when-workflows-run/trigger-a-workflow#triggering-a-workflow-from-a-workflow
- token: '${{ secrets.GH_TOKEN }}'
+ token: ${{ secrets.GH_TOKEN }}
- name: Set up ssh-agent
uses: webfactory/ssh-agent@v0.10.0
with:
- ssh-private-key: '${{ secrets.SSH_KEY }}'
+ ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Set up Python
uses: actions/setup-python@v7
with: