|
|
@ -19,7 +19,6 @@ jobs:
|
|
|
|
timeout_minutes: 5
|
|
|
|
timeout_minutes: 5
|
|
|
|
max_attempts: 3
|
|
|
|
max_attempts: 3
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_on: error
|
|
|
|
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
sudo apt-get install libseccomp-dev
|
|
|
|
sudo apt-get install libseccomp-dev
|
|
|
|
git clone https://github.com/opencontainers/runc
|
|
|
|
git clone https://github.com/opencontainers/runc
|
|
|
@ -27,12 +26,12 @@ jobs:
|
|
|
|
make
|
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
sudo make install
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
- name: Login to GitHub Container Registry
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
uses: docker/login-action@v1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
|
username: ${{ github.repository_owner }}
|
|
|
@ -43,7 +42,6 @@ jobs:
|
|
|
|
timeout_minutes: 5
|
|
|
|
timeout_minutes: 5
|
|
|
|
max_attempts: 3
|
|
|
|
max_attempts: 3
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_on: error
|
|
|
|
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
export
|
|
|
|
export
|
|
|
|
- name: Build Docker image and tag
|
|
|
|
- name: Build Docker image and tag
|
|
|
@ -52,7 +50,6 @@ jobs:
|
|
|
|
timeout_minutes: 60
|
|
|
|
timeout_minutes: 60
|
|
|
|
max_attempts: 3
|
|
|
|
max_attempts: 3
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_on: error
|
|
|
|
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
docker build \
|
|
|
|
docker build \
|
|
|
|
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \
|
|
|
|
--tag ${{ github.repository }}:${{ github.event.inputs.tags }} \
|
|
|
@ -64,7 +61,6 @@ jobs:
|
|
|
|
timeout_minutes: 30
|
|
|
|
timeout_minutes: 30
|
|
|
|
max_attempts: 3
|
|
|
|
max_attempts: 3
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_on: error
|
|
|
|
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
docker push ${{ github.repository }}:${{ github.event.inputs.tags }}
|
|
|
|
docker push ${{ github.repository }}:${{ github.event.inputs.tags }}
|
|
|
|
- name: Push Docker image to GitHub Container Registry (GHCR)
|
|
|
|
- name: Push Docker image to GitHub Container Registry (GHCR)
|
|
|
@ -73,6 +69,5 @@ jobs:
|
|
|
|
timeout_minutes: 30
|
|
|
|
timeout_minutes: 30
|
|
|
|
max_attempts: 3
|
|
|
|
max_attempts: 3
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_wait_seconds: 120
|
|
|
|
retry_on: error
|
|
|
|
|
|
|
|
command: |
|
|
|
|
command: |
|
|
|
|
docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
|
|
|
|
docker push ghcr.io/${{ github.repository }}:${{ github.event.inputs.tags }}
|