Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Merge pull request #986 from inloco/feat/actions-runner-v2.319.1 #1878

Merge pull request #986 from inloco/feat/actions-runner-v2.319.1

Merge pull request #986 from inloco/feat/actions-runner-v2.319.1 #1878

Workflow file for this run

name: Continuous
on:
- push
- workflow_dispatch
permissions:
contents: read
id-token: write
packages: write
jobs:
all:
strategy:
fail-fast: false
matrix:
component:
- dind
- operator
- runner
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v4
- name: docker build
run: make -C '${{ matrix.component }}' docker-build
- name: aws configure
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT }}:role/ecr-public
- name: docker login
run: |
docker login -u '${{ secrets.DOCKERHUB_USER }}' -p '${{ secrets.DOCKERHUB_PASS }}' docker.io
docker login -u '${{ secrets.QUAY_USER }}' -p '${{ secrets.QUAY_PASS }}' quay.io
docker login -u '${{ github.actor }}' -p '${{ github.token }}' ghcr.io
docker login -u 'AWS' -p "$(aws ecr-public get-login-password)" public.ecr.aws
- name: docker tag
run: |
make 'IMAGE_REGISTRY=docker.io' 'IMAGE_REPOSITORY=inloco/kube-actions' -C '${{ matrix.component }}' docker-tag
make 'IMAGE_REGISTRY=quay.io' 'IMAGE_REPOSITORY=inloco/kube-actions' -C '${{ matrix.component }}' docker-tag
make 'IMAGE_REGISTRY=ghcr.io' 'IMAGE_REPOSITORY=${{ github.repository }}' -C '${{ matrix.component }}' docker-tag
make 'IMAGE_REGISTRY=public.ecr.aws' 'IMAGE_REPOSITORY=incognia/kube-actions' -C '${{ matrix.component }}' docker-tag
- name: docker push
shell: '/usr/bin/env parallel --lb --retries 3 :::: {0}'
run: |
make 'IMAGE_REGISTRY=docker.io' 'IMAGE_REPOSITORY=inloco/kube-actions' -C '${{ matrix.component }}' docker-push
make 'IMAGE_REGISTRY=quay.io' 'IMAGE_REPOSITORY=inloco/kube-actions' -C '${{ matrix.component }}' docker-push
make 'IMAGE_REGISTRY=ghcr.io' 'IMAGE_REPOSITORY=${{ github.repository }}' -C '${{ matrix.component }}' docker-push
make 'IMAGE_REGISTRY=public.ecr.aws' 'IMAGE_REPOSITORY=incognia/kube-actions' -C '${{ matrix.component }}' docker-push