Skip to content

Commit

Permalink
Update more github actions (#4004)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno authored Aug 18, 2024
1 parent da7a278 commit 7397b7a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 67 deletions.
56 changes: 0 additions & 56 deletions .github/workflows/backend-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,59 +41,3 @@ jobs:
STRIPE_WEBHOOK_SIGNATURE_SECRET: ""
CELERY_BROKER_URL: ""
CELERY_RESULT_BACKEND: ""

# check-building-container:
# runs-on: ubuntu-latest
# defaults:
# run:
# working-directory: backend

# steps:
# - uses: actions/checkout@v4
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ matrix.service.name }}
# - name: Build test
# uses: docker/build-push-action@v4.0.0
# with:
# context: ./backend
# file: ./backend/Dockerfile
# builder: ${{ steps.buildx.outputs.name }}
# provenance: false
# push: false
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache
# platforms: linux/amd64

# check-building-arm-container:
# runs-on: [self-hosted]
# defaults:
# run:
# working-directory: backend

# steps:
# - uses: actions/checkout@v4
# - name: Set up Docker Buildx
# id: buildx
# uses: docker/setup-buildx-action@v2
# - name: Cache Docker layers
# uses: actions/cache@v2
# with:
# path: /tmp/.buildx-cache
# key: ${{ runner.os }}-buildx-${{ matrix.service.name }}-arm
# - name: Build test
# uses: docker/build-push-action@v4.0.0
# with:
# context: ./backend
# file: ./backend/Dockerfile
# builder: ${{ steps.buildx.outputs.name }}
# provenance: false
# push: false
# cache-from: type=local,src=/tmp/.buildx-cache
# cache-to: type=local,dest=/tmp/.buildx-cache
# platforms: linux/arm64
22 changes: 11 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,30 +93,30 @@ jobs:
fi
- name: Set up QEMU dependency
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Login to GitHub Packages
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Amazon ECR
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
- name: Set up Docker Buildx
id: buildx
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Cache Docker layers
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: actions/cache@v2
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ matrix.service.name }}
- name: Build and push
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.service.dir }}
file: ./${{ matrix.service.dir }}/Dockerfile
Expand Down Expand Up @@ -170,24 +170,24 @@ jobs:
fi
- name: Set up QEMU dependency
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Login to GitHub Packages
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to Amazon ECR
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: aws-actions/amazon-ecr-login@v1
uses: aws-actions/amazon-ecr-login@v2
- name: Set up Docker Buildx
id: buildx
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Build and push
if: ${{ steps.image.outputs.image_exists == 0 }}
uses: docker/build-push-action@v4.0.0
uses: docker/build-push-action@v6
with:
context: ./${{ matrix.service.dir }}
file: ./${{ matrix.service.dir }}/Dockerfile
Expand Down

0 comments on commit 7397b7a

Please sign in to comment.