Skip to content

Commit 7d47dac

Browse files
committed
Update GH Actions
1 parent 8124237 commit 7d47dac

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Workflow
2+
on:
3+
push:
4+
tags: # Build on tag creation (any)
5+
- *
6+
jobs:
7+
test-n-lint:
8+
uses: ./.github/workflows/test-n-lint.yml
9+
build:
10+
name: Build the image
11+
runs-on: ubuntu-latest
12+
needs: [test] # Requires "Test & Lint" workflow to succeed
13+
steps:
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v3
16+
- name: Login to Docker Hub
17+
uses: docker/login-action@v3
18+
with:
19+
username: ${{ secrets.DOCKERHUB_USERNAME }}
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
- name: Build and push
22+
uses: docker/build-push-action@v6
23+
with:
24+
push: true
25+
tags: ${{ vars.DOCKERHUB_PROJECT }}:latest
26+
cache-from: type=gha
27+
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)