Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to rolling action tags for build-ci.yml #1621

Merged
merged 2 commits into from
Dec 1, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 20 additions & 16 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3.3.0
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository_owner }}/grpc-api
flavor: |
Expand All @@ -51,6 +51,7 @@ jobs:
type=edge,branch=main
type=raw,priority=950,enable=${{ startsWith(github.ref, 'refs/heads/release/v') }},value=${{ steps.semver.outputs.semver }}
type=raw,enable=${{ startsWith(github.ref, 'refs/heads/release/v0.7') }},value=latest
type=ref,event=branch
labels: |
org.opencontainers.image.vendor=Deephaven Data Labs
org.opencontainers.image.title=Deephaven Core
Expand All @@ -59,14 +60,14 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.3.0
uses: docker/setup-buildx-action@v1
with:
install: true
driver: docker

- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -83,7 +84,7 @@ jobs:
# https://github.com/docker/build-push-action/blob/master/docs/advanced/cache.md#github-cache
# https://github.com/docker/buildx/pull/535
- name: Docker build
uses: docker/build-push-action@v2.5.0
uses: docker/build-push-action@v2
with:
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down Expand Up @@ -128,7 +129,7 @@ jobs:

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3.3.0
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository_owner }}/grpc-proxy
flavor: |
Expand All @@ -137,6 +138,7 @@ jobs:
type=edge,branch=main
type=raw,priority=950,enable=${{ startsWith(github.ref, 'refs/heads/release/v') }},value=${{ steps.semver.outputs.semver }}
type=raw,enable=${{ startsWith(github.ref, 'refs/heads/release/v0.7') }},value=latest
type=ref,event=branch
labels: |
org.opencontainers.image.vendor=Deephaven Data Labs
org.opencontainers.image.title=Deephaven gRPC Web Proxy
Expand All @@ -145,14 +147,14 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.3.0
uses: docker/setup-buildx-action@v1
with:
install: true
driver: docker

- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -166,7 +168,7 @@ jobs:
gradle-version: wrapper

- name: Docker build
uses: docker/build-push-action@v2.5.0
uses: docker/build-push-action@v2
with:
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down Expand Up @@ -211,7 +213,7 @@ jobs:

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3.3.0
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository_owner }}/envoy
flavor: |
Expand All @@ -220,6 +222,7 @@ jobs:
type=edge,branch=main
type=raw,priority=950,enable=${{ startsWith(github.ref, 'refs/heads/release/v') }},value=${{ steps.semver.outputs.semver }}
type=raw,enable=${{ startsWith(github.ref, 'refs/heads/release/v0.7') }},value=latest
type=ref,event=branch
labels: |
org.opencontainers.image.vendor=Deephaven Data Labs
org.opencontainers.image.title=Deephaven Envoy
Expand All @@ -228,14 +231,14 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.3.0
uses: docker/setup-buildx-action@v1
with:
install: true
driver: docker

- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -249,7 +252,7 @@ jobs:
gradle-version: wrapper

- name: Build
uses: docker/build-push-action@v2.5.0
uses: docker/build-push-action@v2
with:
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand All @@ -272,7 +275,7 @@ jobs:

- name: Docker meta
id: docker_meta
uses: docker/metadata-action@v3.3.0
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository_owner }}/web
flavor: |
Expand All @@ -281,6 +284,7 @@ jobs:
type=edge,branch=main
type=raw,priority=950,enable=${{ startsWith(github.ref, 'refs/heads/release/v') }},value=${{ steps.semver.outputs.semver }}
type=raw,enable=${{ startsWith(github.ref, 'refs/heads/release/v0.7') }},value=latest
type=ref,event=branch
labels: |
org.opencontainers.image.vendor=Deephaven Data Labs
org.opencontainers.image.title=Deephaven Web
Expand Down Expand Up @@ -311,14 +315,14 @@ jobs:

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1.3.0
uses: docker/setup-buildx-action@v1
with:
install: true
driver: docker

- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
Expand All @@ -332,7 +336,7 @@ jobs:
gradle-version: wrapper

- name: Docker build
uses: docker/build-push-action@v2.5.0
uses: docker/build-push-action@v2
with:
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
Expand Down