diff --git a/.github/workflows/epam-docker-image.yml b/.github/workflows/epam-docker-image.yml new file mode 100644 index 0000000..8fb5b84 --- /dev/null +++ b/.github/workflows/epam-docker-image.yml @@ -0,0 +1,30 @@ +name: Docker Image CI + +on: + push: + branches: [ epam/* ] + +jobs: + prep: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: docker/setup-buildx-action@v1 + - uses: docker/login-action@v1 + with: + registry: git.bbnavi.vk256.eu + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - id: docker_build + uses: docker/build-push-action@v2 + with: + build-args: | + NUXT_PUBLIC_AUTH_SECRET=${{ secrets.NUXT_PUBLIC_AUTH_SECRET }} + NUXT_PUBLIC_AUTH_ORIGIN=${{ secrets.NUXT_PUBLIC_AUTH_ORIGIN }} + NUXT_PUBLIC_AUTH_ENDPOINT=${{ secrets.NUXT_PUBLIC_AUTH_ENDPOINT }} + NUXT_PUBLIC_USER_ENDPOINT=${{ secrets.NUXT_PUBLIC_USER_ENDPOINT }} + NUXT_PUBLIC_GRAPHQL_ENDPOINT=${{ secrets.NUXT_PUBLIC_GRAPHQL_ENDPOINT }} + NUXT_PUBLIC_GRAPHQL_AUTH_ENDPOINT=${{ secrets.NUXT_PUBLIC_GRAPHQL_AUTH_ENDPOINT }} + push: true + tags: git.bbnavi.vk256.eu/bbnavi/cms:latest +