Skip to content

Merge pull request #27 from camptocamp/164 #14

Merge pull request #27 from camptocamp/164

Merge pull request #27 from camptocamp/164 #14

---
name: "Release Odyssey"
on:
push:
branches:
- "master"
release:
jobs:
release-please:
runs-on: "ubuntu-latest"
steps:
- name: Release create
uses: "googleapis/release-please-action@v4"
id: "release"
with:
release-type: "simple"
- name: Checkout code
uses: actions/checkout@v2
- name: Ghcr login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image Odyssey
if: ${{ steps.release.outputs.release_created }}
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}:${{ steps.release.outputs.tag_name }}