From dceb1329e3fc637c0cbcff0e5ba6917db6601b3c Mon Sep 17 00:00:00 2001 From: Joshua Nathaniel Miller Date: Fri, 15 Dec 2023 18:22:01 -0600 Subject: [PATCH] ci: add docker login action --- .github/workflows/release-api.yml | 7 +++++++ .github/workflows/release-mysql.yml | 7 +++++++ .github/workflows/release-sandbox-manager-api.yml | 7 +++++++ .github/workflows/release-sandbox.yml | 9 ++++++++- 4 files changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-api.yml b/.github/workflows/release-api.yml index 0ccae45..fd86761 100644 --- a/.github/workflows/release-api.yml +++ b/.github/workflows/release-api.yml @@ -21,6 +21,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Log in to the Container registry + uses: docker/login-action@v3.0.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5.3.0 diff --git a/.github/workflows/release-mysql.yml b/.github/workflows/release-mysql.yml index 7cc2e39..2998977 100644 --- a/.github/workflows/release-mysql.yml +++ b/.github/workflows/release-mysql.yml @@ -20,6 +20,13 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 + + - name: Log in to the Container registry + uses: docker/login-action@v3.0.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta diff --git a/.github/workflows/release-sandbox-manager-api.yml b/.github/workflows/release-sandbox-manager-api.yml index 93d11df..d88855d 100644 --- a/.github/workflows/release-sandbox-manager-api.yml +++ b/.github/workflows/release-sandbox-manager-api.yml @@ -21,6 +21,13 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Log in to the Container registry + uses: docker/login-action@v3.0.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5.3.0 diff --git a/.github/workflows/release-sandbox.yml b/.github/workflows/release-sandbox.yml index 53c9cf7..161dd38 100644 --- a/.github/workflows/release-sandbox.yml +++ b/.github/workflows/release-sandbox.yml @@ -21,6 +21,13 @@ jobs: - name: Checkout repository:w uses: actions/checkout@v2 + - name: Log in to the Container registry + uses: docker/login-action@v3.0.0 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5.3.0 @@ -32,7 +39,7 @@ jobs: type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3.0.0 - name: Build and push Docker image uses: docker/build-push-action@v5.1.0