Skip to content

Commit

Permalink
Merge pull request #27 from camptocamp/164
Browse files Browse the repository at this point in the history
fix: move all actions into a single one with multiples steps
  • Loading branch information
vrenaville authored Jul 3, 2024
2 parents f51424b + a88c483 commit f646a59
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,24 @@ jobs:
release-please:
runs-on: "ubuntu-latest"
steps:
- uses: "googleapis/release-please-action@v4"
- name: Release create
uses: "googleapis/release-please-action@v4"
id: "release"
with:
release-type: "simple"
build-images:
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v2
- 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 }}:${{ steps.release.outputs.tag_name }}
- 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 }}

0 comments on commit f646a59

Please sign in to comment.