Skip to content

Commit

Permalink
Updates build configuration and permissions
Browse files Browse the repository at this point in the history
Renames workflow job to 'hash_hunter'
Adds branch filter and permissions
Fixes syntax for Docker Buildx version
  • Loading branch information
ursisterbtw committed Dec 9, 2024
1 parent 53760eb commit 2b19253
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
name: Docker Build Cloud
name: hash_hunter_build

on:
push:
branches:
- master
pull_request:
branches:
- master

permissions: read-all

jobs:
docker:
Expand All @@ -15,15 +22,14 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
version: "lab:latest"
version: lab:latest
driver: cloud
endpoint: "${{ vars.DOCKER_USER }}/sister1"
endpoint: "${{ vars.DOCKER_USER }}/ursister"
install: true
- name: Build and push
uses: docker/build-push-action@v6
with:
tags: "${{ vars.DOCKER_USER }}/docker-build-cloud-demo:latest"
tags: "${{ vars.DOCKER_USER }}/ursister:latest"
# For pull requests, export results to the build cache.
# Otherwise, push to a registry.
outputs: ${{ github.event_name == 'pull_request' && 'type=cacheonly' || 'type=registry' }}

0 comments on commit 2b19253

Please sign in to comment.