fix(ci): do not use inputs.tagname. Instead, rely on github.ref_name.

Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
This commit is contained in:
Federico Di Pierro
2023-04-19 12:42:35 +02:00
committed by poiana
parent 3693cd0685
commit 60d8c49772
2 changed files with 12 additions and 16 deletions

View File

@@ -6,10 +6,6 @@ on:
description: x86_64 or aarch64
required: true
type: string
tagname:
description: master or tag name
required: true
type: string
bucket:
description: bucket suffix for packages
required: false
@@ -23,7 +19,7 @@ on:
jobs:
build-docker:
# See https://github.com/actions/runner/issues/409#issuecomment-1158849936
runs-on: ${{ (inputs.arch == "aarch64") && fromJSON('[ "self-hosted", "linux", "ARM64" ]') || 'ubuntu-latest' }}
runs-on: ${{ (inputs.arch == 'aarch64' && fromJSON('[ "self-hosted", "linux", "ARM64" ]')) || 'ubuntu-latest' }}
steps:
- name: Checkout
uses: actions/checkout@v3
@@ -79,7 +75,7 @@ jobs:
# public.ecr.aws/falcosecurity/falco-driver-loader:${{ inputs.arch }}-${{ github.ref_name }}
#
# - name: Build and publish no-driver latest
# if: ${{ inputs.tagname != 'master' }}
# if: ${{ github.ref_name != 'master' }}
# uses: docker/build-push-action@v3
# with:
# context: ${{ github.workspace }}/docker/no-driver/
@@ -95,7 +91,7 @@ jobs:
# public.ecr.aws/falcosecurity/falco:${{ inputs.arch }}-latest-slim
#
# - name: Build and publish falco latest
# if: ${{ inputs.tagname != 'master' }}
# if: ${{ github.ref_name != 'master' }}
# uses: docker/build-push-action@v3
# with:
# context: ${{ github.workspace }}/docker/falco/
@@ -109,7 +105,7 @@ jobs:
# public.ecr.aws/falcosecurity/falco:${{ inputs.arch }}-latest
#
# - name: Build and publish falco-driver-loader latest
# if: ${{ inputs.tagname != 'master' }}
# if: ${{ github.ref_name != 'master' }}
# uses: docker/build-push-action@v3
# with:
# context: ${{ github.workspace }}/docker/driver-loader/

View File

@@ -45,7 +45,7 @@ jobs:
push: true
- name: Create and push no-driver latest manifest
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: falcosecurity/falco-no-driver:latest
@@ -53,7 +53,7 @@ jobs:
push: true
- name: Create and push slim latest manifest
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: falcosecurity/falco:latest-slim
@@ -61,7 +61,7 @@ jobs:
push: true
- name: Create and push no-driver latest manifest for ecr
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: public.ecr.aws/falcosecurity/falco-no-driver:latest
@@ -69,7 +69,7 @@ jobs:
push: true
- name: Create and push slim latest manifest for ecr
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: public.ecr.aws/falcosecurity/falco:latest-slim
@@ -91,7 +91,7 @@ jobs:
push: true
- name: Create and push falco latest manifest
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: falcosecurity/falco:latest
@@ -99,7 +99,7 @@ jobs:
push: true
- name: Create and push falco latest manifest for ecr
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: public.ecr.aws/falcosecurity/falco:latest
@@ -121,7 +121,7 @@ jobs:
push: true
- name: Create and push falco-driver-loader latest manifest
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: falcosecurity/falco-driver-loader:latest
@@ -129,7 +129,7 @@ jobs:
push: true
- name: Create and push falco-driver-loader latest manifest for ecr
if: ${{ inputs.tagname != 'master' }}
if: ${{ github.ref_name != 'master' }}
uses: Noelware/docker-manifest-action@master
with:
inputs: public.ecr.aws/falcosecurity/falco-driver-loader:latest