Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/container-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
IMAGE_NAME=$(docker images --format "{{.Repository}}:{{.Tag}}" | grep "flaskapi-guard-example" | head -n 1)
echo "Using image: ${IMAGE_NAME}"

docker tag ${IMAGE_NAME} ghcr.io/${{ github.repository_owner }}/flaskapi-guard-example:latest
docker push ghcr.io/${{ github.repository_owner }}/flaskapi-guard-example:latest
docker tag ${IMAGE_NAME} ghcr.io/guard-core/flaskapi-guard-example:latest
docker push ghcr.io/guard-core/flaskapi-guard-example:latest

if [[ "${{ env.IS_RELEASE }}" == "true" ]]; then
docker tag ${IMAGE_NAME} ghcr.io/${{ github.repository_owner }}/flaskapi-guard-example:${{ env.VERSION }}
docker push ghcr.io/${{ github.repository_owner }}/flaskapi-guard-example:${{ env.VERSION }}
docker tag ${IMAGE_NAME} ghcr.io/guard-core/flaskapi-guard-example:${{ env.VERSION }}
docker push ghcr.io/guard-core/flaskapi-guard-example:${{ env.VERSION }}
fi
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
# environment: pypi
environment: pypi
permissions:
id-token: write
contents: read
Expand All @@ -24,20 +24,14 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install build

- name: Build package
run: |
python -m build

- name: Publish package
env:
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
twine upload dist/*
echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV

uses: pypa/gh-action-pypi-publish@release/v1
- name: Get and Update Version
id: get_version
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/upstream-drift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Checkout guard-core@master
uses: actions/checkout@v7
with:
repository: rennf93/guard-core
repository: Guard-Core/guard-core
ref: master
path: guard-core-upstream
persist-credentials: false
Expand Down
Loading