Skip to content

Commit

Permalink
ci: fix ghrc image build
Browse files Browse the repository at this point in the history
  • Loading branch information
igboyes committed Nov 24, 2022
1 parent 95ee25e commit cc69473
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ on:
release:
types: [published]

env:
REGISTRY: ghcr.io

jobs:
dockerhub:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -20,18 +23,15 @@ jobs:
with:
push: true
tags: virtool/create-subtraction:${{ github.event.release.tag_name }}

ghcr:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
if: github.repository_owner == 'Virtool'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Write VERSION file
run: echo ${{ github.event.release.tag_name }} > VERSION
- name: Update pyproject.toml version
run: sed -i 's/0\.0\.0/${{ github.event.release.tag_name }}/' pyproject.toml
- name: Login to Registry
Expand Down

0 comments on commit cc69473

Please sign in to comment.