Skip to content

Commit

Permalink
check login
Browse files Browse the repository at this point in the history
  • Loading branch information
Blaize Kaye committed Aug 5, 2024
1 parent ccdf2e8 commit 9dc54b7
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/build-base-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

# - name: Log in to Docker Hub
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_USERNAME }}
# password: ${{ secrets.DOCKER_PASSWORD }}

# - name: Log in to GitHub Container Registry
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Build drupal-base-cli image
# run: docker build -t uselagoon/drupal-base-cli:latest -t drupal-base-cli -f ./lagoon/cli.dockerfile .
Expand All @@ -38,18 +38,19 @@ jobs:
- name: Build Docker images
run: docker compose -f docker-compose.yml build

- name: Tag Docker images
run: |
docker tag drupal-base-cli:latest uselagoon/drupal-base-image-cli:latest
docker tag drupal-base-php:latest uselagoon/drupal-base-image-php:latest
docker tag drupal-base-nginx:latest uselagoon/drupal-base-image-nginx:latest
- name: List images
run: docker image ls

# - name: Tag Docker images
# run: |
# docker tag your-dockerhub-username/your-app:latest your-dockerhub-username/your-app:main
# docker tag your-dockerhub-username/your-app:latest ghcr.io/your-github-username/your-app:latest

# - name: Push Docker images to Docker Hub
# run: |
# docker push your-dockerhub-username/your-app:latest
# docker push your-dockerhub-username/your-app:main

# docker push uselagoon/drupal-base-image-cli:latest
# docker push uselagoon/drupal-base-image-php:latest
# docker push uselagoon/drupal-base-image-nginx:latest
# - name: Push Docker images to GitHub Container Registry
# run: docker push ghcr.io/your-github-username/your-app:latest

0 comments on commit 9dc54b7

Please sign in to comment.