Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Multi-Arch images using github actions #31

Merged
merged 59 commits into from
Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
d7a8b7c
Added github actions file for auto pushing image to my dockerhub dock…
May 31, 2022
2d348f9
Fixed master branch name in github actions file
Jun 1, 2022
ede437b
trying to fix error in github actions run
Jun 1, 2022
2887722
Update docker.yml
Jun 1, 2022
89b55ec
updated docker hub push repository to networkboot/dhcpd
Jun 1, 2022
2b2b9ec
fixed repo link
Jun 1, 2022
28a8278
Merge branch 'master' of github.com:waqarrashid33/docker-dhcpd
Jun 1, 2022
52defc0
Add new test file to understand how github actions work
wickywaka Jul 18, 2022
681f227
Added workflow for tag. won't execute for this commit
wickywaka Jul 18, 2022
1635a52
Merge branch 'master' into pull-request
wickywaka Jul 18, 2022
f02d54b
tag action will run
wickywaka Jul 18, 2022
a8eb1d2
updated name
wickywaka Jul 18, 2022
f0411a8
Will not run because commit is not tagged
wickywaka Jul 18, 2022
ae86ceb
udapted
wickywaka Jul 18, 2022
3510ddf
udpated
wickywaka Jul 18, 2022
11a05d2
udpated
wickywaka Jul 18, 2022
cc779cf
udated
wickywaka Jul 18, 2022
7f9eaf9
created workflows for latest and tag
wickywaka Jul 18, 2022
cc1f41f
udpated latest tag to protect existing latest tag
wickywaka Jul 18, 2022
f8fe329
updated
wickywaka Jul 18, 2022
34c231e
udated
wickywaka Jul 18, 2022
a55b475
updated names
wickywaka Jul 18, 2022
89140a8
removed extra line
wickywaka Jul 18, 2022
3030352
Merge branch 'networkboot:master' into pull-request
wickywaka Jul 19, 2022
0882d6f
Improved consisteny, updated dockerhub repo name
Jul 25, 2022
f8f54ef
cleanup
Jul 25, 2022
10209ba
Added new action for semver parsing
Jul 25, 2022
89edae7
Removed unecessary echo print statement
Jul 25, 2022
32a2209
Fixed yml syntax
Jul 25, 2022
421bb39
updated with space
Jul 25, 2022
5251b3a
Fixed usage of parse-semver
wickywaka Jul 26, 2022
a64debf
debugging
Jul 26, 2022
96c9e3e
debugging: uncommented semver-parser
Jul 26, 2022
194d3c3
next try to find the bug
Jul 26, 2022
c58a7fe
next attemp
Jul 26, 2022
7828c65
Added semver test file
Jul 26, 2022
86b2d37
updated
Jul 26, 2022
3d55347
updated
Jul 26, 2022
1e172e6
updated
Jul 26, 2022
6697757
updated
Jul 26, 2022
c32f30a
updated
Jul 26, 2022
9a9126b
updated
Jul 26, 2022
3179be1
updated
Jul 26, 2022
1d3510c
updated
Jul 26, 2022
185995b
updated
Jul 26, 2022
3e6bf8e
updated
Jul 26, 2022
5ab470f
updated
Jul 26, 2022
db91786
updated
Jul 26, 2022
9946e1f
updated
Jul 26, 2022
edd89b2
udpated
Jul 26, 2022
35aa319
seems to be working now
Jul 26, 2022
ac94325
fixed cap
Jul 26, 2022
484e79e
Merge pull request #2 from wickywaka/parse-semver
wickywaka Jul 26, 2022
e5e1b88
Added ldap build and push stage
wickywaka Jul 27, 2022
c391434
Update dockerize-latest.yml
wickywaka Jul 27, 2022
cc25713
Update dockerize-tag.yml
wickywaka Jul 27, 2022
91b0536
Update dockerize-latest.yml
wickywaka Jul 28, 2022
73a8e1a
Update dockerize-tag.yml
wickywaka Jul 28, 2022
4d685fd
Fixed typo
wickywaka Aug 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/dockerize-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Build and Push latest

on:
push:
branches: [ master ]
workflow_dispatch:

jobs:
build-push-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup QEMU
id: qemu
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64

- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]

- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}

- name: Build and Push Dockerfile.ldap
id: docker_build_ldap
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
file: Dockerfile.ldap
tags: networkboot/dhcpd:ldap-latest


- name: Print LDAP Image Digest
run: echo ${{ steps.docker_build_ldap.outputs.digest }}

- name: Build and Push Dockerfile
id: docker_build
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags: networkboot/dhcpd:latest


- name: Print Image Digest
run: echo ${{ steps.docker_build.outputs.digest }}
66 changes: 66 additions & 0 deletions .github/workflows/dockerize-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Build and Push Tag
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
build-push-tag:
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: get-tag
with:
tagRegex: "v(.*)"

- name: Parse Semver String
id: semver-parser
uses: booxmedialtd/ws-action-parse-semver@v1
with:
input_string: "${{ steps.get-tag.outputs.tag }}"

- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup QEMU
id: qemu
uses: docker/[email protected]
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64

- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]

- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}


- name: Build and Push ldap
id: docker_build_ldap
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
file: Dockerfile.ldap
tags:
networkboot/dhcpd:ldap-${{ steps.semver-parser.outputs.fullversion }},
networkboot/dhcpd:ldap-${{ steps.semver-parser.outputs.major }}

- name: Print LDAP Image Digest
run: echo ${{ steps.docker_build_ldap.outputs.digest }}

- name: Build and Push
id: docker_build
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
tags:
networkboot/dhcpd:${{ steps.semver-parser.outputs.fullversion }},
networkboot/dhcpd:${{ steps.semver-parser.outputs.major }}

- name: Print Image Digest
run: echo ${{ steps.docker_build.outputs.digest }}