Skip to content

Commit

Permalink
Updating to newer actions
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Marques <[email protected]>
  • Loading branch information
Tylermarques committed Jun 12, 2024
1 parent d9f6728 commit ee38bde
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,18 @@ on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
uses: docker/setup-buildx-action@v3

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
Expand All @@ -32,12 +25,13 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/build-push-action@v4
uses: docker/build-push-action@v5
with:
permissions: write-all
context: .
push: true
tags: ghcr.io/tylermarques/u-the-bomb-com:prod
tags: ghcr.io/tylermarques/u-the-bomb-com:${{ github.sha }} ghcr.io/tylermarques/u-the-bomb-com:prod
cache-from: type=registry,ref=user/app:latest
cache-to: type=inline

update-manifests:
needs: build
Expand Down

0 comments on commit ee38bde

Please sign in to comment.