Skip to content

Commit

Permalink
fix github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed May 1, 2021
1 parent 1ee0aa7 commit be5ad9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
run: |
TAG="ghcr.io/xu-cheng/texlive-$SCHEME"
VERSION="$(date "+%Y%m%d")"
docker tag texlive-$SCHEME ${TAG}:$VERSION
docker tag texlive-$SCHEME ${TAG}:latest
docker tag texlive-$SCHEME $TAG:$VERSION
docker tag texlive-$SCHEME $TAG:latest
docker images $TAG
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push $TAG:$VERSIOM
docker push $TAG:$VERSION
docker push $TAG:latest
if: "github.ref == 'refs/heads/master' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')"

8 changes: 4 additions & 4 deletions .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- run: |
TAG="ghcr.io/xu-cheng/texlive-${{ matrix.scheme }}"
VERSION="${{ github.event.inputs.version }}"
docker pull ${TAG}:${VERSION}
docker tag ${TAG}:${VERSION} ${TAG}:latest
docker images ${TAG}
docker pull $TAG:$VERSION
docker tag $TAG:$VERSION $TAG:latest
docker images $TAG
echo ${{ secrets.CR_PAT }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
docker push ${TAG}:latest
docker push $TAG:latest

0 comments on commit be5ad9d

Please sign in to comment.