Skip to content

Commit

Permalink
CI: Try old push method
Browse files Browse the repository at this point in the history
  • Loading branch information
roekatz committed Jun 21, 2023
1 parent 0c903c7 commit 5cdf3bc
Showing 1 changed file with 57 additions and 42 deletions.
99 changes: 57 additions & 42 deletions .github/workflows/on_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ jobs:
load: true
tags: |
permitio/opal-client:test
permitio/opal-client-standalone:${{ env.opal_version_tag }}
- name: Build client-standalone for testing
id: build_client_standalone
Expand All @@ -88,6 +89,7 @@ jobs:
load: true
tags: |
permitio/opal-client-standalone:test
permitio/opal-client-standalone:${{ env.opal_version_tag }}
- name: Build server for testing
id: build_server
Expand All @@ -101,6 +103,7 @@ jobs:
load: true
tags: |
permitio/opal-server:test
permitio/opal-client-standalone:${{ env.opal_version_tag }}
# TEST PHASE
- name: Create modified docker compose file
Expand All @@ -121,47 +124,59 @@ jobs:

# pushes the *same* docker images that were previously tested as part of e2e sanity test.
# each image is pushed with the versioned tag first, if it succeeds the image is pushed with the latest tag as well.
- name: Build & Push client
id: build_push_client
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
target: client
cache-from: type=registry,ref=permitio/opal-client:latest
cache-to: type=inline
tags: |
permitio/opal-client:latest
permitio/opal-client:${{ env.opal_version_tag }}
- name: Push client
if: ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true') }}
run: docker push permitio/opal-client:${{ env.opal_version_tag }}

- name: Build client-standalone
id: build_push_client_standalone
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
target: client-standalone
cache-from: type=registry,ref=permitio/opal-client-standalone:latest
cache-to: type=inline
tags: |
permitio/opal-client-standalone:latest
permitio/opal-client-standalone:${{ env.opal_version_tag }}
- name: Push client-standalone
if: ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true') }}
run: docker push permitio/opal-client-standalone:${{ env.opal_version_tag }}

- name: Build server
id: build_push_server
uses: docker/build-push-action@v4
with:
context: .
file: docker/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
target: server
cache-from: type=registry,ref=permitio/opal-server:latest
cache-to: type=inline
tags: |
permitio/opal-server:latest
permitio/opal-server:${{ env.opal_version_tag }}
- name: Push server
if: ${{ !(github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true') }}
run: docker push permitio/opal-server:${{ env.opal_version_tag }}

# - name: Build & Push client
# id: build_push_client
# uses: docker/build-push-action@v4
# with:
# context: .
# file: docker/Dockerfile
# platforms: linux/amd64,linux/arm64
# push: true
# target: client
# cache-from: type=registry,ref=permitio/opal-client:latest
# cache-to: type=inline
# tags: |
# permitio/opal-client:latest
# permitio/opal-client:${{ env.opal_version_tag }}

# - name: Build client-standalone
# id: build_push_client_standalone
# uses: docker/build-push-action@v4
# with:
# context: .
# file: docker/Dockerfile
# platforms: linux/amd64,linux/arm64
# push: true
# target: client-standalone
# cache-from: type=registry,ref=permitio/opal-client-standalone:latest
# cache-to: type=inline
# tags: |
# permitio/opal-client-standalone:latest
# permitio/opal-client-standalone:${{ env.opal_version_tag }}

# - name: Build server
# id: build_push_server
# uses: docker/build-push-action@v4
# with:
# context: .
# file: docker/Dockerfile
# platforms: linux/amd64,linux/arm64
# push: true
# target: server
# cache-from: type=registry,ref=permitio/opal-server:latest
# cache-to: type=inline
# tags: |
# permitio/opal-server:latest
# permitio/opal-server:${{ env.opal_version_tag }}

0 comments on commit 5cdf3bc

Please sign in to comment.