adding dev-v11.0.1 tag to this commit to ensure building #356
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Dev Docker Image | |
on: | |
push: | |
branches: | |
- "**" | |
tags: | |
- 'dev-*' | |
jobs: | |
dependency-branches: | |
name: Dependency Branches | |
runs-on: ubuntu-latest | |
outputs: | |
branches: ${{ steps.result.outputs.branches }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: supertokens/get-core-dependencies-action@main | |
id: result | |
with: | |
run-for: PR | |
docker: | |
name: Docker | |
runs-on: ubuntu-latest | |
needs: dependency-branches | |
outputs: | |
tag: ${{ steps.set_tag.outputs.TAG }} | |
strategy: | |
fail-fast: false | |
matrix: | |
plugin: | |
- postgresql | |
# no longer supported | |
# - mysql | |
# - mongodb | |
steps: | |
- name: Set up JDK 21.0.7 | |
uses: actions/setup-java@v2 | |
with: | |
java-version: 21.0.7 | |
distribution: zulu | |
- uses: actions/checkout@v2 | |
with: | |
repository: supertokens/supertokens-root | |
path: ./supertokens-root | |
ref: master | |
- uses: actions/checkout@v2 | |
with: | |
path: ./supertokens-root/supertokens-core | |
- uses: actions/checkout@v2 | |
with: | |
repository: supertokens/supertokens-plugin-interface | |
path: ./supertokens-root/supertokens-plugin-interface | |
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)['plugin-interface'] }} | |
- uses: actions/checkout@v2 | |
if: matrix.plugin != 'sqlite' | |
with: | |
repository: supertokens/supertokens-${{ matrix.plugin }}-plugin | |
path: ./supertokens-root/supertokens-${{ matrix.plugin }}-plugin | |
ref: ${{ fromJson(needs.dependency-branches.outputs.branches)[matrix.plugin] }} | |
- name: Load Modules | |
run: | | |
cd supertokens-root | |
echo "core,master | |
plugin-interface,master | |
${{ matrix.plugin }}-plugin,master | |
" > modules.txt | |
cat modules.txt | |
./loadModules | |
- name: Setup test env | |
run: cd supertokens-root && ./utils/setupTestEnv --local | |
- name: Generate config file | |
run: | | |
cd supertokens-root | |
touch config_temp.yaml | |
cat supertokens-core/config.yaml >> config_temp.yaml | |
cat supertokens-${{ matrix.plugin }}-plugin/config.yaml >> config_temp.yaml | |
mv config_temp.yaml config.yaml | |
- name: set tag | |
id: set_tag | |
run: | | |
echo "TAG=${GITHUB_REF}" | sed 's/refs\/heads\///g' | sed 's/\//_/g' >> $GITHUB_OUTPUT | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ vars.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
context: ./supertokens-root | |
tags: supertokens/supertokens-dev-${{ matrix.plugin }}:${{ steps.set_tag.outputs.TAG }} | |
file: ./supertokens-root/supertokens-${{ matrix.plugin }}-plugin/.github/helpers/docker/Dockerfile | |
platforms: linux/amd64,linux/arm64 |