diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/docker.yml | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 0b10a77..c35c7d4 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,7 +13,6 @@ on: - ".github/workflows/docker.yml" env: - REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }} jobs: @@ -30,15 +29,26 @@ jobs: uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + - name: Lint + uses: hadolint/hadolint-action@v3.1.0 + with: + dockerfile: Dockerfile - name: Extract metadata id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - - name: Login to GitHub Registry + images: | + ghcr.io/${{ env.IMAGE_NAME }} + rosstheross/locusts + - name: Login to DockerHub + uses: docker/login-action@v3 + with: + username: rosstheross + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GHCR uses: docker/login-action@v3 with: - registry: ${{ env.REGISTRY }} + registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build and Push |