yolo push to both repos #17
This file contains 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: ci | ||
on: | ||
push: | ||
branches: | ||
- 'release' | ||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# packages: write | ||
steps: | ||
- | ||
name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- | ||
name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- | ||
name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ github.token }} | ||
- | ||
name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ variables.DOCKERHUB_USERNAME }} | ||
Check failure on line 32 in .github/workflows/docker-image.yml GitHub Actions / ciInvalid workflow file
|
||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
- | ||
name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
tags: ghcr.io/${{ github.repository_owner }}/dynalite:latest,dimaqq/dynalite:latest | ||
platforms: linux/amd64,linux/arm64 | ||
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/dynalite:latest | ||
cache-to: type=inline |