Skip to content

Commit

Permalink
Update GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-kleshnin committed Sep 3, 2024
1 parent 8124237 commit 7d47dac
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build Workflow
on:
push:
tags: # Build on tag creation (any)
- *
jobs:
test-n-lint:
uses: ./.github/workflows/test-n-lint.yml
build:
name: Build the image
runs-on: ubuntu-latest
needs: [test] # Requires "Test & Lint" workflow to succeed
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/#-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ vars.DOCKERHUB_PROJECT }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit 7d47dac

Please # to comment.