Skip to content

Commit

Permalink
use the same actions as release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
gicastel authored Jul 29, 2024
1 parent 0d02e27 commit f29678a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 21 deletions.
35 changes: 19 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,28 +26,31 @@ jobs:
steps:
- uses: actions/checkout@v4
name: Check out code
- name: Build and push
uses: docker/build-push-action@v6

- uses: mr-smithers-excellent/docker-build-push@v6
name: Build Docker standalone image
with:
context: .
file: standalone.dockerfile
pull: true
push: false
image: qest
tags: standalone, standalone-latest, standalone-${{ github.ref_name }}

registry: ghcr.io
dockerfile: standalone.dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
pushImage: false

build-docker-bundle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out code
- name: Build and push
uses: docker/build-push-action@v6

- uses: mr-smithers-excellent/docker-build-push@v6
name: Build Docker bundle image
with:
context: .
file: bundle.dockerfile
pull: true
push: false
image: qest
tags: bundle, bundle-latest, bundle-${{ github.ref_name }}

registry: ghcr.io
dockerfile: bundle.dockerfile
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
pushImage: false
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:
build-binaries:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.9.0
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x

Expand All @@ -37,10 +37,10 @@ jobs:
build-docker-standalone:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
name: Check out code

- uses: mr-smithers-excellent/docker-build-push@v5
- uses: mr-smithers-excellent/docker-build-push@v6
name: Build & push Docker standalone image
with:
image: qest
Expand All @@ -56,7 +56,7 @@ jobs:
- uses: actions/checkout@v2
name: Check out code

- uses: mr-smithers-excellent/docker-build-push@v5
- uses: mr-smithers-excellent/docker-build-push@v6
name: Build & push Docker bundle image
with:
image: qest
Expand Down

0 comments on commit f29678a

Please sign in to comment.