| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- name: Release Docker Images for RC
- on:
- push:
- branches:
- - rc/**
- jobs:
- build-rc:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v3
- with:
- lfs: true
- - name: Retrieve information from package.json
- uses: myrotvorets/info-from-package-json-action@1.2.0
- id: package-json
- - name: Docker meta
- id: meta
- uses: docker/metadata-action@v3
- with:
- images: weseek/growi,ghcr.io/weseek/growi
- tags: |
- type=raw,value=${{ steps.package-json.outputs.packageVersion }}
- type=raw,value=${{ steps.package-json.outputs.packageVersion }}.{{sha}}
- - name: Login to docker.io registry
- run: |
- echo ${{ secrets. DOCKER_REGISTRY_PASSWORD }} | docker login --username wsmoogle --password-stdin
- - name: Login to GitHub Container Registry
- uses: docker/login-action@v1
- with:
- registry: ghcr.io
- username: wsmoogle
- password: ${{ secrets.DOCKER_REGISTRY_ON_GITHUB_PASSWORD }}
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v1
- - name: Build and push
- uses: docker/build-push-action@v2
- with:
- context: .
- file: ./packages/app/docker/Dockerfile
- platforms: linux/amd64
- push: true
- builder: ${{ steps.buildx.outputs.name }}
- cache-from: type=gha
- cache-to: type=gha,mode=max
- tags: ${{ steps.meta.outputs.tags }}
|