Skip to content

Commit

Permalink
retry
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Mar 4, 2024
1 parent cd4d863 commit bb800fb
Showing 1 changed file with 10 additions and 17 deletions.
27 changes: 10 additions & 17 deletions .github/workflows/cd.yml → .github/workflows/cd-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,17 @@ name: CD
on:
push:
branches: [master]
paths:
- .github/workflows/cd-api.yml
- modules/api
- modules/common
- hack/docker
- hack/gateway
pull_request:
branches: [ master ] # TODO: Remove before merging.
create:
tags:
- "v*.*.*"
- "api/v*.*.*"
permissions:
contents: read
id-token: write
Expand All @@ -29,7 +35,7 @@ env:
TERM: xterm
jobs:
release:
name: Release
name: Release API
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -41,14 +47,9 @@ jobs:
images: |
ghcr.io/kubernetes/dashboard-api
docker.io/kubernetesui/dashboard-api
ghcr.io/kubernetes/dashboard-auth
docker.io/kubernetesui/dashboard-auth
ghcr.io/kubernetes/dashboard-web
docker.io/kubernetesui/dashboard-web
ghcr.io/kubernetes/metrics-scraper
docker.io/kubernetesui/metrics-scraper
tags: |
type=semver,pattern={{version}}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
- uses: docker/setup-qemu-action@v3.0.0
- uses: docker/setup-buildx-action@v3.0.0
- uses: docker/login-action@v3.0.0
Expand All @@ -60,17 +61,9 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# - if: github.event_name == 'push' && contains(github.ref, 'master')
- uses: docker/build-push-action@v5
with:
context: .
push: false # TODO
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
# - if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
- uses: docker/build-push-action@v5
with:
context: .
context: modules
push: false # TODO
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit bb800fb

Please sign in to comment.