Skip to content

Commit

Permalink
CI-fix: Remove unused matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 2, 2024
1 parent e514e57 commit 6a32754
Showing 1 changed file with 32 additions and 37 deletions.
69 changes: 32 additions & 37 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,38 @@ on:
- '**docker.yml'
workflow_dispatch:
schedule:
- cron: '30 11 20 * *'
- cron: '30 11 18 * *'

jobs:
docker:
name: linuxdeploy-env_${{ matrix.tag }}
strategy:
fail-fast: false
matrix:
tag: focal
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
submodules: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: andy5995
password: ${{ secrets.UNCLE_ANDY_DOCKERHUB_ACCESS_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
build-image:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
submodules: true
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: andy5995
password: ${{ secrets.UNCLE_ANDY_DOCKERHUB_ACCESS_TOKEN }}
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: andy5995/linuxdeploy:latest
cache-from: type=registry,ref=andy5995/linuxdeploy:buildcache
cache-to: type=registry,ref=andy5995/linuxdeploy:buildcache,mode=max
-
name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: andy5995/linuxdeploy:latest
cache-from: type=registry,ref=andy5995/linuxdeploy:buildcache
cache-to: type=registry,ref=andy5995/linuxdeploy:buildcache,mode=max

0 comments on commit 6a32754

Please sign in to comment.