Skip to content

Commit

Permalink
feat: publish mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
skynet2 committed May 12, 2024
1 parent 20bfd49 commit 1748ea4
Showing 1 changed file with 34 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# SPDX-License-Identifier: Apache-2.0
#

name: release-extra
name: mocks
on:
pull_request:
push:
branches:
- main
jobs:
mock-webhook:
runs-on: ubuntu-latest
Expand All @@ -25,12 +27,12 @@ jobs:
TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`)
echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV
# - name: Login to Github Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ secrets.CR_USER }}
# password: ${{ secrets.CR_PAT }}
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}

- name: Setup Go 1.21
uses: actions/setup-go@v5
Expand Down Expand Up @@ -70,12 +72,12 @@ jobs:
TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`)
echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV
# - name: Login to Github Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ secrets.CR_USER }}
# password: ${{ secrets.CR_PAT }}
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}

- name: Build and Push
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -109,12 +111,12 @@ jobs:
TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`)
echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV
# - name: Login to Github Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ secrets.CR_USER }}
# password: ${{ secrets.CR_PAT }}
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}

- name: Build and Push
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -147,12 +149,12 @@ jobs:
TAG=$(git describe --tags --always `git rev-list --tags --max-count=1`)
echo "IMAGE_TAG"=$TAG >> $GITHUB_ENV
# - name: Login to Github Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ secrets.CR_USER }}
# password: ${{ secrets.CR_PAT }}
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}

- name: Build and Push
uses: docker/build-push-action@v5
Expand Down Expand Up @@ -193,12 +195,12 @@ jobs:

- run: make sample-cognito-auth

# - name: Login to Github Container Registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ secrets.CR_USER }}
# password: ${{ secrets.CR_PAT }}
- name: Login to Github Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ secrets.CR_USER }}
password: ${{ secrets.CR_PAT }}

- name: Build and Push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit 1748ea4

Please sign in to comment.