Skip to content

Fix Docker image publishing #1204

Fix Docker image publishing

Fix Docker image publishing #1204

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
jobs:
mikbot:
uses: mikbot/mikbot-workflow/.github/workflows/mikbot-workflow.yml@v1.0.8
with:
run-maven-publish: true
update-binary-repository: true
secrets:
GCP_ACCOUNT_KEY: ${{ secrets.GCP_ACCOUNT_KEY }}
JFROG_USER: ${{ secrets.JFROG_USER }}
JFROG_PASSWORD: ${{ secrets.JFROG_KEY}}
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
BUILDCACHE_USER: $ {{ secrets.BUILDCACHE_USER }}
BUILDCACHE_PASSWORD: $ {{ secrets.BUILDCACHE_PASSWORD }}
DISCORD_WEBHOOK: $ {{ secrets.DISCORD_WEBHOOK }}
push:
name: Push
runs-on: ubuntu-20.04
needs: [ build ]

Check failure on line 30 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 30, Col: 14): Job 'push' depends on unknown job 'build'.
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '19'
- uses: gradle/gradle-build-action@v2
with:
arguments: :installDist --no-daemon --build-cache
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login
env:
GITHUB_TOKEN: ${{ secrets.DOCKER_TOKEN }}
run: docker login ghcr.io --username DRSchlaubi --password "$GITHUB_TOKEN"
- name: Push Image
run: |
docker buildx build \
--tag ghcr.io/drschlaubi/mikmusic/bot:"$GITHUB_SHA" \
--tag ghcr.io/drschlaubi/mikmusic/bot:latest \
--file ./Dockerfile \
--output type=image,push=true .
- name: Push Votebot Image
run: |
docker buildx build \
--tag ghcr.io/drschlaubi/mikmusic/votebot:"$GITHUB_SHA" \
--tag ghcr.io/drschlaubi/mikmusic/votebot:latest \
--file ./votebot/Dockerfile \
--output type=image,push=true .