Skip to content

Commit

Permalink
Merge pull request #19 from camptocamp/153
Browse files Browse the repository at this point in the history
feat: update pipeline automerge
  • Loading branch information
vrenaville authored Jul 3, 2024
2 parents 460b23a + 2602e96 commit 9039f2d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 39 deletions.
39 changes: 0 additions & 39 deletions .github/workflows/ci.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,31 @@ jobs:
- uses: "googleapis/release-please-action@v4"
with:
release-type: "simple"
build-images:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v2
- name: Set ENV for branch master/main
if: ${{ github.ref == 'refs/heads/master' }}
run: echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
- name: Set ENV for tags
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Set ENV for specific branch
if: ${{ startsWith(github.ref, 'refs/heads/') && !endsWith(github.ref, '/master') }}
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}-${GITHUB_SHA}" >> $GITHUB_ENV
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image Odyssey
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}:${{ env.RELEASE_VERSION }}

0 comments on commit 9039f2d

Please sign in to comment.