A discord bot for teal.fm
discord tealfm music

ok lets try building the container

besaid.zone e34ec590 21912538

verified
Changed files
+11 -7
.tangled
workflows
+9 -7
.tangled/workflows/docker-atcr.yml
··· 12 12 steps: 13 13 - name: build 14 14 command: | 15 - VCS_REF=$(git rev-parse HEAD) 16 - BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) 17 - 18 - git remote -v || true 19 15 git fetch --prune --unshallow 2>/dev/null || true 20 16 git fetch --prune --tags --force origin 'refs/tags/*:refs/tags/*' 21 17 18 + SHA=$(git rev-parse HEAD) 19 + BUILD_DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) 22 20 VERSION=$(git describe --tags --abbrev=0) 23 21 24 - echo $VERSION 25 - 26 - exit 1 22 + docker build \ 23 + -t discostu:$VERSION \ 24 + --build-arg VERSION=$VERSION \ 25 + --build-arg SHA=$SHA \ 26 + --build-arg BUILD_DATE=$BUILD_DATE \ 27 + --pull \ 28 + --no-cache .
+2
Dockerfile
··· 6 6 7 7 ARG BUILD_DATE 8 8 ARG SHA 9 + ARG VERSION 9 10 10 11 FROM base AS build 11 12 COPY --chown=1000:1000 /apps/bot /app ··· 46 47 org.opencontainers.image.source="https://tangled.org/dane.is.extraordinarily.cool/tealfmbot" \ 47 48 org.opencontainers.image.title="discostu" \ 48 49 org.opencontainers.image.description="A discord bot that displays your music listens based on your teal.fm records" \ 50 + org.opencontainers.image.version=$VERSION \ 49 51 org.opencontainers.image.created=$BUILD_DATE \ 50 52 org.opencontainers.image.revision=$SHA \ 51 53 org.opencontainers.image.licenses="MIT"