diff --git a/.github/workflows/pkg.yaml b/.github/workflows/pkg.yaml index f1b14af..d36671c 100644 --- a/.github/workflows/pkg.yaml +++ b/.github/workflows/pkg.yaml @@ -6,12 +6,11 @@ jobs: runs-on: ubuntu-latest steps: - name: docker-login - uses: docker-practice/actions-setup-docker@master - - name: execute login - run: | - set -x - docker version - echo ${{ secrets.REGISTRY_TOKEN }} | docker login docker.pkg.github.com -u linjinbao --password-stdin + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} - name: checkout uses: actions/checkout@master - name: execute script diff --git a/.github/workflows/registry.yml b/.github/workflows/registry.yml index ab2b469..578e307 100644 --- a/.github/workflows/registry.yml +++ b/.github/workflows/registry.yml @@ -27,7 +27,4 @@ jobs: github-token: ${{ secrets.REGISTRY_TOKEN }} image-name: gcr-image-transfer image-tag: latest - - name: execute bash - run: | - ./transfer-to-registry.sh - docker images +