name: ci on: push: branches: - 'main' schedule: - cron: '0 0 * * *' jobs: docker: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2.2.1 - name: Login to DockerHub uses: docker/login-action@v2.1.0 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Login to GitHub Container Registry uses: docker/login-action@v2.1.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v3.2.0 with: context: . platforms: linux/amd64 push: true tags: | gameservermanagers/linuxgsm:latest gameservermanagers/linuxgsm:ubuntu-22.04 ghcr.io/gameservermanagers/linuxgsm:latest ghcr.io/gameservermanagers/linuxgsm:ubuntu-22.04