Skip to content

Docker login not working in actions #15

Description

@DevER-M

Happened 2 hours ago
image

main.yml

name: CI


on:
  schedule:
    - cron: "43 3 * * *"

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
  build:
    runs-on: ubuntu-latest
    # Steps represent a sequence of tasks that will be executed as part of the job
    steps:
      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
      - uses: actions/checkout@v3
      - name: docker login on ghcr.io
        env:
          AT: ${{ secrets.AT }}
        run: docker login ghcr.io -u code-theft-auto -p $AT
      - name: pull python:3.10.4-slim
        run: docker pull python:3.10.4-alpine
      - name: docker build
        run: docker build . -t ghcr.io/code-theft-auto/sockeypy:$(date +%d-%m-%y)
      - name: docker push
        run: docker push ghcr.io/code-theft-auto/sockeypy:$(date +%d-%m-%y)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions