2020-08-15 08:50:47 -04:00
|
|
|
name: ci
|
|
|
|
|
2023-09-05 05:00:45 -04:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-08-15 08:50:47 -04:00
|
|
|
on:
|
2020-10-28 12:03:15 -04:00
|
|
|
workflow_dispatch:
|
2020-10-23 12:09:50 -04:00
|
|
|
schedule:
|
2021-12-20 04:59:11 -05:00
|
|
|
- cron: '0 10 * * *'
|
2020-08-15 08:50:47 -04:00
|
|
|
push:
|
|
|
|
branches:
|
2021-03-31 12:34:44 -04:00
|
|
|
- 'master'
|
|
|
|
- 'releases/v*'
|
2020-08-15 08:50:47 -04:00
|
|
|
|
|
|
|
jobs:
|
2021-04-27 18:34:26 -04:00
|
|
|
stop-docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2021-04-27 18:34:26 -04:00
|
|
|
-
|
|
|
|
name: Stop docker
|
|
|
|
run: |
|
|
|
|
sudo systemctl stop docker
|
|
|
|
-
|
|
|
|
name: Login to GitHub Container Registry
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
2021-07-06 14:32:11 -04:00
|
|
|
username: ${{ github.actor }}
|
2021-04-27 18:34:26 -04:00
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2021-06-22 04:39:55 -04:00
|
|
|
logout:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
logout:
|
|
|
|
- false
|
|
|
|
- true
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2021-06-22 04:39:55 -04:00
|
|
|
-
|
|
|
|
name: Login to GitHub Container Registry
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
2021-07-06 14:32:11 -04:00
|
|
|
username: ${{ github.actor }}
|
2021-06-22 04:39:55 -04:00
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
logout: ${{ matrix.logout }}
|
|
|
|
|
2020-12-08 13:12:27 -05:00
|
|
|
dind:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
DOCKER_CONFIG: $HOME/.docker
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-12-08 13:12:27 -05:00
|
|
|
-
|
|
|
|
name: Login to GitHub Container Registry
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ secrets.GHCR_USERNAME }}
|
|
|
|
password: ${{ secrets.GHCR_PAT }}
|
|
|
|
-
|
|
|
|
name: DinD
|
|
|
|
uses: docker://docker
|
|
|
|
with:
|
|
|
|
entrypoint: docker
|
|
|
|
args: pull ghcr.io/docker-ghactiontest/test
|
|
|
|
-
|
|
|
|
name: Pull private image
|
|
|
|
run: |
|
|
|
|
docker image prune -a -f >/dev/null 2>&1
|
|
|
|
docker pull ghcr.io/docker-ghactiontest/test
|
|
|
|
|
2020-12-22 05:30:57 -05:00
|
|
|
acr:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-12-22 05:30:57 -05:00
|
|
|
-
|
|
|
|
name: Login to ACR
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: ${{ secrets.AZURE_REGISTRY_NAME }}.azurecr.io
|
|
|
|
username: ${{ secrets.AZURE_CLIENT_ID }}
|
|
|
|
password: ${{ secrets.AZURE_CLIENT_SECRET }}
|
|
|
|
|
2020-10-23 12:09:50 -04:00
|
|
|
dockerhub:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
2021-06-23 08:05:59 -04:00
|
|
|
- ubuntu-latest
|
2021-12-19 16:25:34 -05:00
|
|
|
- windows-latest
|
2020-10-23 12:09:50 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-10-23 12:09:50 -04:00
|
|
|
-
|
2020-12-11 01:15:35 -05:00
|
|
|
name: Login to Docker Hub
|
2020-10-23 12:09:50 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
2020-08-15 09:36:37 -04:00
|
|
|
|
2020-11-18 12:47:48 -05:00
|
|
|
ecr:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
2021-06-23 08:05:59 -04:00
|
|
|
- ubuntu-latest
|
2021-12-19 16:25:34 -05:00
|
|
|
- windows-latest
|
2020-11-18 12:47:48 -05:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-11-18 12:47:48 -05:00
|
|
|
-
|
|
|
|
name: Login to ECR
|
|
|
|
uses: ./
|
|
|
|
with:
|
2021-12-20 08:27:18 -05:00
|
|
|
registry: ${{ secrets.AWS_ACCOUNT_NUMBER }}.dkr.ecr.us-east-1.amazonaws.com
|
2020-11-18 12:47:48 -05:00
|
|
|
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
|
|
|
|
ecr-aws-creds:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
2021-06-23 08:05:59 -04:00
|
|
|
- ubuntu-latest
|
2021-12-19 16:25:34 -05:00
|
|
|
- windows-latest
|
2020-11-18 12:47:48 -05:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-11-18 12:47:48 -05:00
|
|
|
-
|
|
|
|
name: Configure AWS Credentials
|
2023-09-12 01:08:41 -04:00
|
|
|
uses: aws-actions/configure-aws-credentials@v4
|
2020-11-18 12:47:48 -05:00
|
|
|
with:
|
|
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
2021-12-20 08:27:18 -05:00
|
|
|
aws-region: us-east-1
|
2020-11-18 12:47:48 -05:00
|
|
|
-
|
|
|
|
name: Login to ECR
|
|
|
|
uses: ./
|
|
|
|
with:
|
2021-12-20 08:27:18 -05:00
|
|
|
registry: ${{ secrets.AWS_ACCOUNT_NUMBER }}.dkr.ecr.us-east-1.amazonaws.com
|
2020-10-23 12:09:50 -04:00
|
|
|
|
2020-12-17 05:06:17 -05:00
|
|
|
ecr-public:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
2021-06-23 08:05:59 -04:00
|
|
|
- ubuntu-latest
|
2021-12-19 16:25:34 -05:00
|
|
|
- windows-latest
|
2020-08-15 09:36:37 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-08-15 09:36:37 -04:00
|
|
|
-
|
2020-12-17 05:06:17 -05:00
|
|
|
name: Login to Public ECR
|
2023-10-25 04:38:12 -04:00
|
|
|
continue-on-error: ${{ matrix.os == 'windows-latest' }}
|
2020-08-15 09:36:37 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
2020-12-17 05:06:17 -05:00
|
|
|
registry: public.ecr.aws
|
|
|
|
username: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
password: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
2021-12-20 08:27:18 -05:00
|
|
|
env:
|
|
|
|
AWS_REGION: us-east-1
|
|
|
|
|
|
|
|
ecr-public-aws-creds:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2021-12-20 08:27:18 -05:00
|
|
|
-
|
|
|
|
name: Configure AWS Credentials
|
2023-09-12 01:08:41 -04:00
|
|
|
uses: aws-actions/configure-aws-credentials@v4
|
2021-12-20 08:27:18 -05:00
|
|
|
with:
|
|
|
|
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
|
|
aws-region: us-east-1
|
|
|
|
-
|
2023-10-25 04:38:12 -04:00
|
|
|
name: Login to Public ECR
|
|
|
|
continue-on-error: ${{ matrix.os == 'windows-latest' }}
|
2021-12-20 08:27:18 -05:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: public.ecr.aws
|
2020-10-23 12:09:50 -04:00
|
|
|
|
|
|
|
github-container:
|
2021-12-19 16:25:34 -05:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
2020-10-23 12:09:50 -04:00
|
|
|
steps:
|
2020-08-15 09:36:37 -04:00
|
|
|
-
|
2020-10-23 12:09:50 -04:00
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-10-23 12:09:50 -04:00
|
|
|
-
|
2020-12-08 13:12:27 -05:00
|
|
|
name: Login to GitHub Container Registry
|
2020-10-23 12:09:50 -04:00
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
2021-07-06 14:32:11 -04:00
|
|
|
username: ${{ github.actor }}
|
2021-03-24 18:23:59 -04:00
|
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
2020-08-15 09:36:37 -04:00
|
|
|
|
2020-10-23 12:09:50 -04:00
|
|
|
gitlab:
|
2021-12-19 16:25:34 -05:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
2020-10-23 12:09:50 -04:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-10-23 12:09:50 -04:00
|
|
|
-
|
|
|
|
name: Login to GitLab
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: registry.gitlab.com
|
|
|
|
username: ${{ secrets.GITLAB_USERNAME }}
|
|
|
|
password: ${{ secrets.GITLAB_TOKEN }}
|
|
|
|
|
2020-12-22 05:27:40 -05:00
|
|
|
google-artifact:
|
2021-12-19 16:25:34 -05:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
2020-12-22 05:27:40 -05:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-12-22 05:27:40 -05:00
|
|
|
-
|
|
|
|
name: Login to Google Artifact Registry
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: ${{ secrets.GAR_LOCATION }}-docker.pkg.dev
|
|
|
|
username: _json_key
|
|
|
|
password: ${{ secrets.GAR_JSON_KEY }}
|
2020-12-22 05:11:23 -05:00
|
|
|
|
|
|
|
google-container:
|
2021-12-19 16:25:34 -05:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
os:
|
|
|
|
- ubuntu-latest
|
|
|
|
- windows-latest
|
2020-12-22 05:11:23 -05:00
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2023-09-05 01:39:46 -04:00
|
|
|
uses: actions/checkout@v4
|
2020-12-22 05:11:23 -05:00
|
|
|
-
|
|
|
|
name: Login to Google Container Registry
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
registry: gcr.io
|
|
|
|
username: _json_key
|
|
|
|
password: ${{ secrets.GCR_JSON_KEY }}
|