Skip to content

Commit 8f27811

Browse files
committed
workflow
1 parent 1e5113a commit 8f27811

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build & Push Test Image
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build-and-push:
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@d632e3ad3cbf37287e2359a3a99f28b629f8b50a # v4.2.2
19+
with:
20+
persist-credentials: false
21+
22+
- name: Login to Docker Hub
23+
uses: docker/login-action@bb579dcd203bb47d39c5c7ae9199ba0f7f0f9f79 # v3.3.0
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
28+
- name: Set up Docker Buildx
29+
uses: docker/setup-buildx-action@d70bfc4b38f3a38cafe5be9e35ab9f7d7f91e2c4 # v3.6.1
30+
31+
- name: Build and push test image
32+
uses: docker/build-push-action@a467abb8f3c0a355b81c3ee5a07a55ed8bd865e5 # v6.7.0
33+
with:
34+
context: tee_launcher/launcher-test-image
35+
file: tee_launcher/launcher-test-image/Dockerfile
36+
push: true
37+
tags: |
38+
nearone/testing:latest
39+
nearone/testing:${{ github.sha }}

0 commit comments

Comments
 (0)