Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: move all actions into a single one with multiples steps #27

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}