diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index acb020b..bd1e948 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -5,10 +5,6 @@ on: push: branches: ['main'] -env: - REGISTRY: ghcr.io - IMAGE_NAME: ${{ github.repository }} - jobs: build-and-push-image: runs-on: ubuntu-latest @@ -20,18 +16,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Log in to the Container registry - uses: docker/login-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v2 with: - registry: ${{ env.REGISTRY }} - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: brainstation/cloud-guild - name: Build and push Docker image uses: docker/build-push-action@v5