Skip to content

Commit

Permalink
Version bump to 1.2.0 and update CI workflows (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Jul 27, 2022
1 parent 21749e8 commit 2fbbc0f
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 9 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,19 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Build and push the image
uses: docker/build-push-action@v1.1.0
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
if: ${{ github.event_name == 'push' }}
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: ./Dockerfile
repository: certpl/${{ github.event.repository.name }}
tags: ${{ github.sha }}
- name: Build and push the image
uses: docker/build-push-action@v2.2.1
with:
tags: |
certpl/${{ github.event.repository.name }}:${{ github.sha }}
push: ${{ github.event_name == 'push' }}
28 changes: 25 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Release a new version

on:
push:
tags: 'v*.*.*'
release:
types: [published]

jobs:
release:
release_pypi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,3 +18,25 @@ jobs:
with:
user: __token__
password: ${{ secrets.pypi_password }}
release_dockerhub:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push the image
uses: docker/build-push-action@v2.2.1
with:
tags: |
certpl/${{ github.event.repository.name }}:${{ github.sha }}
certpl/${{ github.event.repository.name }}:${{ github.event.release.tag_name }}
certpl/${{ github.event.repository.name }}:latest
push: true
2 changes: 1 addition & 1 deletion karton/autoit_ripper/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.0"
__version__ = "1.2.0"

0 comments on commit 2fbbc0f

Please sign in to comment.