Skip to content

Commit

Permalink
docker push
Browse files Browse the repository at this point in the history
  • Loading branch information
buckelij committed Dec 8, 2024
1 parent cbdb58a commit d4b5025
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/sifio-smtp-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:
# Builds and pushes an image up to your Azure Container Registry
- name: Build and push image to ACR
run: |
az acr build --image ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} --registry ${{ env.AZURE_CONTAINER_REGISTRY }} -g ${{ env.RESOURCE_GROUP }} --file config/smtp/Dockerfile .
az acr login --name ${{ env.AZURE_CONTAINER_REGISTRY }}
docker build -t ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} -f config/www/Dockerfile .
docker push ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }}
createSecret:
permissions:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/sifio-www-aks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ jobs:
# Builds and pushes an image up to your Azure Container Registry
- name: Build and push image to ACR
run: |
az acr build --image ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} --registry ${{ env.AZURE_CONTAINER_REGISTRY }} -g ${{ env.RESOURCE_GROUP }} --file config/www/Dockerfile .
az acr login --name ${{ env.AZURE_CONTAINER_REGISTRY }}
docker build -t ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }} -f config/www/Dockerfile .
docker push ${{ env.AZURE_CONTAINER_REGISTRY }}.azurecr.io/${{ env.CONTAINER_NAME }}:${{ github.sha }}
createSecret:
permissions:
Expand Down
2 changes: 1 addition & 1 deletion config/smtp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN go build -v -o /usr/local/bin/app cmd/smtp/main.go

# sudo apt-get install qemu binfmt-support qemu-user-static
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
FROM --platform=linux/arm64/v8 arm64v8/alpine:3.14
FROM --platform=linux/arm64/v8 arm64v8/alpine:3
WORKDIR /usr/src/app
COPY --from=0 /usr/local/bin/app /usr/local/bin/app

Expand Down
4 changes: 2 additions & 2 deletions config/www/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM arm64v8/golang:1-alpine
FROM golang:1-alpine

WORKDIR /usr/src/app
ENV GOARCH=arm64
Expand All @@ -9,7 +9,7 @@ RUN go build -v -o /usr/local/bin/app cmd/www/main.go

# sudo apt-get install qemu binfmt-support qemu-user-static
# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
FROM --platform=linux/arm64/v8 arm64v8/alpine:3.14
FROM --platform=linux/arm64/v8 arm64v8/alpine:3
WORKDIR /usr/src/app
COPY --from=0 /usr/local/bin/app /usr/local/bin/app

Expand Down

0 comments on commit d4b5025

Please sign in to comment.