chore(workflows): inline github script action
Some checks failed
Build and Publish Docker Images / setup (push) Successful in 1m0s
Build and Publish Docker Images / build (server.Dockerfile, ${{ vars.IMAGE_NAME_SERVER }}) (push) Failing after 1m19s
Build and Publish Docker Images / build (worker.Dockerfile, ${{ vars.IMAGE_NAME_WORKER }}) (push) Failing after 10s
Some checks failed
Build and Publish Docker Images / setup (push) Successful in 1m0s
Build and Publish Docker Images / build (server.Dockerfile, ${{ vars.IMAGE_NAME_SERVER }}) (push) Failing after 1m19s
Build and Publish Docker Images / build (worker.Dockerfile, ${{ vars.IMAGE_NAME_WORKER }}) (push) Failing after 10s
This commit is contained in:
parent
62fd20faa6
commit
c1d119396a
1 changed files with 2 additions and 15 deletions
|
@ -11,9 +11,6 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
setup:
|
setup:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
|
||||||
branch: ${{ steps.get-git-context.outputs.branch }}
|
|
||||||
commit: ${{ steps.get-git-context.outputs.commit }}
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
@ -24,16 +21,6 @@ jobs:
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Get Git Context
|
|
||||||
id: get-git-context
|
|
||||||
uses: actions/github-script@v6
|
|
||||||
with:
|
|
||||||
script: |
|
|
||||||
const branch = github.ref.split('/').pop();
|
|
||||||
const commit = github.sha;
|
|
||||||
core.setOutput('branch', branch);
|
|
||||||
core.setOutput('commit', commit);
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: setup
|
needs: setup
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -53,5 +40,5 @@ jobs:
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
git.brmartin.co.uk/${{ matrix.image-name }}:${{ needs.setup.outputs.branch }}
|
git.brmartin.co.uk/${{ matrix.image-name }}:${{ github.ref_name }}
|
||||||
git.brmartin.co.uk/${{ matrix.image-name }}:${{ needs.setup.outputs.commit }}
|
git.brmartin.co.uk/${{ matrix.image-name }}:${{ github.sha }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue