-
-
Notifications
You must be signed in to change notification settings - Fork 137
25 lines (25 loc) · 825 Bytes
/
web-publish.yaml
File metadata and controls
25 lines (25 loc) · 825 Bytes
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
name: web - Publish Docker image to GitHub Package Registry
on:
push:
tags:
- 'v**\+web'
jobs:
publish-web:
env:
IMAGE_NAME: web
runs-on: ubuntu-latest
steps:
- name: Copy Files
uses: actions/checkout@v2
- name: Get version without prefix
id: tmp
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}
- name: Remove version cmd suffix
id: vars
run: echo ::set-output name=tag::${TAG%+web}
env:
TAG: ${{steps.tmp.outputs.tag}}
- name: Docker login
run: docker login docker.pkg.github.com -u $GITHUB_ACTOR -p ${{ secrets.GITHUB_TOKEN }}
- name: Release images
run: make docker-release BIN=$IMAGE_NAME REGISTRY=docker.pkg.github.com/$GITHUB_REPOSITORY VERSION=${{ steps.vars.outputs.tag }}