Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 7f9eaf9

Browse files
authored
created workflows for latest and tag
1 parent cc779cf commit 7f9eaf9

File tree

2 files changed

+31
-4
lines changed

2 files changed

+31
-4
lines changed

.github/workflows/docker.yml renamed to .github/workflows/dockerize-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
build:
9+
build-Push-Latest:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout Repository
Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Build and Push version tagged Docker for each tag
22
on:
33
push:
4-
# branches: [ master, pull-request ]
4+
branches: [ master, pull-request ]
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+*'
77
jobs:
@@ -10,6 +10,33 @@ jobs:
1010
steps:
1111
- uses: olegtarasov/[email protected]
1212
id: tagName
13-
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
1413
- run: echo "🎉 Tag is ${{ steps.tagName.outputs.tag }}."
15-
- run: echo "🍏 This job's status is ${{ job.status }}."
14+
- name: Checkout Repository
15+
uses: actions/checkout@v2
16+
17+
- name: Setup QEMU
18+
id: qemu
19+
uses: docker/[email protected]
20+
with:
21+
platforms: linux/amd64,linux/arm/v7,linux/arm64
22+
23+
- name: Set up Docker Buildx
24+
id: buildx
25+
uses: docker/[email protected]
26+
27+
- name: Login to Docker Hub
28+
uses: docker/[email protected]
29+
with:
30+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
31+
password: ${{ secrets.DOCKER_HUB_TOKEN }}
32+
33+
- name: Build and push
34+
id: docker_build
35+
uses: docker/build-push-action@v2
36+
with:
37+
platforms: linux/amd64,linux/arm/v7,linux/arm64
38+
push: true
39+
tags: wickywaka/docker-dhcpd:${{ steps.tagName.outputs.tag }}
40+
41+
- name: Image digest
42+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)