-
Notifications
You must be signed in to change notification settings - Fork 4
40 lines (40 loc) · 1.09 KB
/
publish-latest.yaml
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
39
40
name: publish-latest
on:
workflow_run:
workflows: ["test"]
branches: [master]
types: [completed]
env:
VERSION: v0.0.8
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Tag Repo
uses: richardsimko/update-tag@v1
with:
tag_name: ${{ env.VERSION }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-latest:
name: publish-latest
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
timeout-minutes: 30
steps:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- uses: actions/checkout@v3
- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
tags: ghcr.io/expediagroup/overwhelm:latest,ghcr.io/expediagroup/overwhelm:${{ env.VERSION }}