@apanel256/test-test123 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/build.yml +1 -1
- package/.github/workflows/docker.yml +29 -0
- package/Dockerfile +10 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
name: Docker Build & Push
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
docker:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- uses: actions/checkout@v4
|
|
14
|
+
|
|
15
|
+
- name: Login to Docker Hub
|
|
16
|
+
uses: docker/login-action@v3
|
|
17
|
+
with:
|
|
18
|
+
username: ${{ secrets.DOCKER_USERNAME }}
|
|
19
|
+
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
20
|
+
|
|
21
|
+
- name: Build Docker image
|
|
22
|
+
run: |
|
|
23
|
+
docker build -t ${{ secrets.DOCKER_USERNAME }}/test:${{ github.ref_name }} .
|
|
24
|
+
docker tag ${{ secrets.DOCKER_USERNAME }}/test:${{ github.ref_name }} ${{ secrets.DOCKER_USERNAME }}/test:latest
|
|
25
|
+
|
|
26
|
+
- name: Push Docker image
|
|
27
|
+
run: |
|
|
28
|
+
docker push ${{ secrets.DOCKER_USERNAME }}/test:${{ github.ref_name }}
|
|
29
|
+
docker push ${{ secrets.DOCKER_USERNAME }}/test:latest
|
package/Dockerfile
ADDED