add github docker package

This commit is contained in:
pocketW
2022-08-25 20:32:07 +10:00
committed by GitHub
parent fa51cb5309
commit c280cca7b3

View File

@@ -21,21 +21,30 @@ jobs:
steps:
- name: Check out the repo
uses: actions/checkout@v2
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: mengxin239/xrayr
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
-
name: Log in to the Container registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
mengxin239/xrayr
ghcr.io/${{ github.repository }}
-
name: Build and push
uses: docker/build-push-action@v2