mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2025-07-28 09:19:37 +02:00
Update frontend-latest.yml
This commit is contained in:
parent
8ff054fbc1
commit
fc3f318110
1 changed files with 9 additions and 14 deletions
23
.github/workflows/frontend-latest.yml
vendored
23
.github/workflows/frontend-latest.yml
vendored
|
@ -30,22 +30,17 @@ jobs:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Build Docker image
|
||||||
uses: docker/setup-qemu-action@v3
|
run: docker build -t $IMAGE_NAME:latest ./frontend
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Build Docker image and push to Docker Hub
|
|
||||||
uses: docker/build-push-action@v6
|
|
||||||
with:
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
|
||||||
tags: ${{ secrets.DOCKERHUB_USERNAME }}/$IMAGE_NAME:latest
|
|
||||||
context: ./frontend
|
|
||||||
|
|
||||||
- name: Tag Docker image for GHCR
|
- name: Tag Docker image for GHCR
|
||||||
run: docker tag ${{ secrets.DOCKERHUB_USERNAME }}/$IMAGE_NAME:latest ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
|
run: docker tag $IMAGE_NAME:latest ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
|
||||||
|
|
||||||
|
- name: Tag Docker image for Docker Hub
|
||||||
|
run: docker tag $IMAGE_NAME:latest ${{ secrets.DOCKERHUB_USERNAME }}/$IMAGE_NAME:latest
|
||||||
|
|
||||||
- name: Push Docker image to GHCR
|
- name: Push Docker image to GHCR
|
||||||
run: docker push ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
|
run: docker push ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME:latest
|
||||||
|
|
||||||
|
- name: Push Docker image to Docker Hub
|
||||||
|
run: docker push ${{ secrets.DOCKERHUB_USERNAME }}/$IMAGE_NAME:latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue