-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using a different approach to build (#43)
* Using a different approach to build * wip * wip * wip * Fixed name * wip * wip * Changed to use releases
- Loading branch information
1 parent
241dc38
commit 0b3efb9
Showing
8 changed files
with
98 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Define a reusable step to configure AWS credentials and delete existing versions | ||
name: AWS Beanstalk Deployment | ||
description: Configures AWS credentials, clean up old versions and deploy new version | ||
inputs: | ||
version: | ||
description: 'Container version' | ||
required: true | ||
docker-username: | ||
description: 'Docker username' | ||
required: true | ||
docker-password: | ||
description: 'Docker password' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
with: | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Login to DockerHub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ inputs.docker-username }} | ||
password: ${{ inputs.docker-password }} | ||
|
||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: ${{ inputs.version }} | ||
push: true | ||
provenance: false | ||
platforms: linux/amd64,linux/arm64 | ||
tags: kirschbaumdevelopment/laravel-test-runner:${{ inputs.version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
name: php-8.1-publish | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
- uses: ./.github/actions/docker-publish | ||
name: Build and Publish (8.1) | ||
with: | ||
name: kirschbaumdevelopment/laravel-test-runner | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: 8.1 | ||
tags: "8.1" | ||
platforms: linux/amd64,linux/arm64 | ||
version: 8.1 | ||
docker-username: ${{ secrets.DOCKER_USERNAME }} | ||
docker-password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
validate: | ||
runs-on: ubuntu-latest | ||
needs: publish | ||
container: | ||
image: kirschbaumdevelopment/laravel-test-runner:8.1 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: goss --gossfile 8.1/goss.yaml validate |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
name: php-8.2-publish | ||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Publish to Registry | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
- uses: ./.github/actions/docker-publish | ||
name: Build and Publish (8.2) | ||
with: | ||
name: kirschbaumdevelopment/laravel-test-runner | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: 8.2 | ||
tags: "8.2" | ||
platforms: linux/amd64,linux/arm64 | ||
version: 8.2 | ||
docker-username: ${{ secrets.DOCKER_USERNAME }} | ||
docker-password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
validate: | ||
runs-on: ubuntu-latest | ||
needs: publish | ||
container: | ||
image: kirschbaumdevelopment/laravel-test-runner:8.2 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: goss --gossfile 8.2/goss.yaml validate |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,28 @@ | ||
name: php-8.3-publish | ||
on: | ||
push: | ||
branches: | ||
- master | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish-amd: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Build & Publish to Registry (AMD) | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
- uses: ./.github/actions/docker-publish | ||
name: Build and Publish (8.3) | ||
with: | ||
name: kirschbaumdevelopment/laravel-test-runner | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: 8.3 | ||
tags: "8.3" | ||
platforms: linux/amd64 | ||
version: 8.3 | ||
docker-username: ${{ secrets.DOCKER_USERNAME }} | ||
docker-password: ${{ secrets.DOCKER_TOKEN }} | ||
|
||
publish-arm: | ||
validate: | ||
runs-on: ubuntu-latest | ||
needs: publish | ||
container: | ||
image: kirschbaumdevelopment/laravel-test-runner:8.3 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Build & Publish to Registry (ARM) | ||
uses: elgohr/Publish-Docker-Github-Action@v5 | ||
with: | ||
name: kirschbaumdevelopment/laravel-test-runner | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
workdir: 8.3 | ||
tags: "8.3" | ||
platforms: linux/arm64 | ||
- uses: actions/checkout@v2 | ||
- run: goss --gossfile 8.3/goss.yaml validate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ command: | |
php --version: | ||
exit-status: 0 | ||
stdout: | ||
- 8.3 | ||
- "8.3" | ||
php -m: | ||
exit-status: 0 | ||
stdout: | ||
|