Skip to content

publish-latest

publish-latest #41

name: publish-latest
on:
workflow_run:
workflows: ["test"]
branches: [master]
types: [completed]
env:
VERSION: v0.0.12
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/login-action@v2.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v3.0.0
with:
context: .
push: true
tags: ghcr.io/expediagroup/overwhelm:latest,ghcr.io/expediagroup/overwhelm:${{ env.VERSION }}