Skip to content

Commit

Permalink
remove push to old registry (#494)
Browse files Browse the repository at this point in the history
  • Loading branch information
fsimonjetz authored Jul 16, 2024
1 parent 1e47c04 commit f9ee391
Showing 1 changed file with 1 addition and 68 deletions.
69 changes: 1 addition & 68 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,74 +42,7 @@ jobs:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageCommand: yarn test --coverage --forceExit --detectOpenHandles

docker:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [test]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: docker/setup-buildx-action@v1

- uses: docker/login-action@v1
with:
registry: www.ebl.lmu.de
username: ${{ secrets.EBL_REGISTRY_USERNAME }}
password: ${{ secrets.EBL_REGISTRY_PASSWORD }}

- id: docker_build
uses: docker/build-push-action@v2
with:
build-args: |
REACT_APP_AUTH0_DOMAIN=auth.ebl.lmu.de
REACT_APP_CORRECTIONS_EMAIL=ebl-support+corrections@culture.lmu.de
REACT_APP_INFO_EMAIL=ebl-info@culture.lmu.de
REACT_APP_AUTH0_CLIENT_ID=${{ secrets.REACT_APP_AUTH0_CLIENT_ID }}
REACT_APP_AUTH0_AUDIENCE=${{ secrets.REACT_APP_AUTH0_AUDIENCE }}
REACT_APP_DICTIONARY_API_URL=/api
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
REACT_APP_GA_TRACKING_ID=${{ secrets.REACT_APP_GA_TRACKING_ID }}
context: .
file: ./Dockerfile
push: true
tags: |
www.ebl.lmu.de/ebl-frontend:master
${{format('www.ebl.lmu.de/ebl-frontend:master.{0}', github.run_number)}}
docker-test:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: docker/setup-buildx-action@v1

- uses: docker/login-action@v1
with:
registry: www.ebl.lmu.de
username: ${{ secrets.EBL_REGISTRY_USERNAME }}
password: ${{ secrets.EBL_REGISTRY_PASSWORD }}

- id: docker_build
uses: docker/build-push-action@v2
with:
build-args: |
REACT_APP_AUTH0_DOMAIN=auth.ebl.lmu.de
REACT_APP_CORRECTIONS_EMAIL=ebl-support+corrections@culture.lmu.de
REACT_APP_INFO_EMAIL=ebl-info@culture.lmu.de
REACT_APP_AUTH0_CLIENT_ID=${{ secrets.REACT_APP_AUTH0_CLIENT_ID }}
REACT_APP_AUTH0_AUDIENCE=${{ secrets.REACT_APP_AUTH0_AUDIENCE }}
REACT_APP_DICTIONARY_API_URL=/test/api
REACT_APP_SENTRY_DSN=${{ secrets.REACT_APP_SENTRY_DSN }}
REACT_APP_GA_TRACKING_ID=${{ secrets.REACT_APP_GA_TRACKING_ID }}
context: .
file: ./Dockerfile
push: true
tags: |
www.ebl.lmu.de/ebl-frontend:test
docker2:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
needs: [test]
runs-on: ubuntu-latest
Expand Down Expand Up @@ -143,7 +76,7 @@ jobs:
ebl.badw.de/ebl-frontend:master
${{format('ebl.badw.de/ebl-frontend:master.{0}', github.run_number)}}
docker-test2:
docker-test:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit f9ee391

Please sign in to comment.