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

View File

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