-
Notifications
You must be signed in to change notification settings - Fork 6
38 lines (35 loc) · 964 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: release
on:
release:
types: [published]
env:
REGISTRY: ghcr.io
jobs:
ghcr:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
if: github.repository_owner == 'Virtool'
steps:
- uses: actions/checkout@v2
- uses: snok/install-poetry@v1
- name: Update Version
run: poetry version ${{github.event.release.tag_name}}
- uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ secrets.GH_USERNAME }}
password: ${{ secrets.GH_TOKEN }}
- name: Extract Metadata
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/virtool/create-sample
- name: Build and Push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}