Skip to content

Commit

Permalink
use depot for image building
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Jun 28, 2024
1 parent b63fbf9 commit ab983e4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ name: Build and push docker image
on:
workflow_dispatch:

permissions:
contents: read
id-token: write
packages: write

jobs:
build:
runs-on: ubicloud-standard-8
runs-on: ubicloud-standard
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -19,6 +24,8 @@ jobs:
images: |
ghcr.io/${{ github.repository }}
- uses: depot/setup-action@v1

- name: Login to GHCR
uses: docker/login-action@v2
with:
Expand All @@ -27,7 +34,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push privately
uses: docker/build-push-action@v3
uses: depot/build-push-action@v1
with:
context: .
push: true
Expand Down

0 comments on commit ab983e4

Please sign in to comment.