Skip to content

Commit

Permalink
Merge pull request #24 from sdodsley/master
Browse files Browse the repository at this point in the history
Create release workflow
  • Loading branch information
sdodsley authored Apr 3, 2024
2 parents 3abc2f4 + 2a10ee4 commit 9fbc8dd
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release

"on":
release:
types:
- created

jobs:
release:
runs-on: ubuntu-latest
name: Release
steps:
- uses: actions/checkout@v2

- uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Build image
env:
DOCKER_BUILDKIT: 1
run: |
tox -e podman -- ${{ github.event.release.tag_name }}
- name: Push swagger
uses: redhat-actions/[email protected]
with:
image: swagger
tags: ${{ github.event.release.tag_name }} latest
registry: quay.io/purestorage/
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_TOKEN }}
20 changes: 20 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[tox]
minversion = 1.6
skipsdist = True

[testenv]
basepython = python3
#install_command = pip install {opts} {packages}
#deps = -r{toxinidir}/requirements.txt

[testenv:podman]
passenv =
HOME
whitelist_external =
true
commands =
/bin/bash -c "podman rmi quay.io/purestorage/swagger:latest || true"
docker build . -t swagger:{posargs} -t swagger:latest
allowlist_externals =
/bin/bash
docker

0 comments on commit 9fbc8dd

Please sign in to comment.