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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and publish docker image #11

Merged
merged 24 commits into from
Jan 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
5 changes: 4 additions & 1 deletion .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ jobs:
build-and-publish:
runs-on: ubuntu-latest
name: Build and Publish
permissions:
packages: write
contents: read
steps:
- name: Execute Action Graph
uses: actionforge/action@v0.8.20
uses: actionforge/action@v0.8.25
with:
graph_file: build-and-publish.yml
205 changes: 166 additions & 39 deletions .github/workflows/graphs/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ executions:
dst:
node: penguin-dog-blueberry
port: exec
- src:
node: gh-start
port: exec-on-push
dst:
node: kiwi-gray-parrot
port: exec
- src:
node: blue-monkey-tiger
port: exec
Expand Down Expand Up @@ -60,36 +54,72 @@ executions:
dst:
node: rabbit-dolphin-raspberry
port: exec
- src:
node: penguin-dog-blueberry
port: exec-success
dst:
node: run-v1-cherry-raspberry-pineapple
port: exec
- src:
node: parallel-exec-v1-cranberry-blueberry-orange
port: exec[0]
dst:
node: github-com-actions-upload-artifact-v3-1-3-purple-rabbit-brown
port: exec
- src:
node: gh-start
port: exec-on-push
dst:
node: kiwi-gray-parrot
port: exec
- src:
node: branch-v1-pink-purple-koala
port: exec-then
dst:
node: parallel-exec-v1-cranberry-blueberry-orange
port: exec
- src:
node: parallel-exec-v1-cranberry-blueberry-orange
port: exec[2]
dst:
node: blue-monkey-tiger
port: exec
- src:
node: penguin-dog-blueberry
port: exec-success
node: parallel-exec-v1-cranberry-blueberry-orange
port: exec[1]
dst:
node: run-v1-cherry-raspberry-pineapple
node: github-com-docker-login-action-v3-0-0-kiwi-giraffe-kiwi
port: exec
- src:
node: run-v1-cherry-raspberry-pineapple
port: exec-success
dst:
node: parallel-exec-v1-cranberry-blueberry-orange
node: parallel-exec-v1-raspberry-kangaroo-strawberry
port: exec
- src:
node: parallel-exec-v1-cranberry-blueberry-orange
node: parallel-exec-v1-raspberry-kangaroo-strawberry
port: exec[1]
dst:
node: branch-v1-pink-purple-koala
port: exec
- src:
node: parallel-exec-v1-cranberry-blueberry-orange
node: parallel-exec-v1-raspberry-kangaroo-strawberry
port: exec[0]
dst:
node: github-com-actions-upload-artifact-v3-1-3-purple-rabbit-brown
port: exec
- src:
node: github-com-docker-login-action-v3-0-0-kiwi-giraffe-kiwi
port: exec
dst:
node: github-com-docker-setup-buildx-action-v3-0-0-silver-koala-lemon
port: exec
- src:
node: github-com-docker-setup-buildx-action-v3-0-0-silver-koala-lemon
port: exec
dst:
node: github-com-docker-build-push-action-v5-1-0-brown-orange-banana
port: exec
connections:
- src:
node: env-get-v1-rabbit-octopus-gold
Expand Down Expand Up @@ -139,6 +169,30 @@ connections:
dst:
node: rabbit-dolphin-raspberry
port: name
- src:
node: string-fmt-v1-shark-orange-brown
port: result
dst:
node: github-com-docker-build-push-action-v5-1-0-brown-orange-banana
port: tags
- src:
node: env-get-v1-gold-panda-coconut
port: env
dst:
node: string-fmt-v1-shark-orange-brown
port: input[0]
- src:
node: env-get-v1-gold-panda-coconut
port: env
dst:
node: string-fmt-v1-shark-orange-brown
port: input[1]
- src:
node: env-get-v1-penguin-pineapple-pear
port: env
dst:
node: string-fmt-v1-shark-orange-brown
port: input[2]
nodes:
- id: gh-start
type: gh-start@v1
Expand Down Expand Up @@ -166,8 +220,8 @@ nodes:
- id: penguin-coconut-gray
type: run@v1
position:
x: 2830
y: 730
x: 3280
y: 2120
inputs:
script: >-
GOOS=linux GOARCH=amd64 go build -ldflags "-X
Expand All @@ -180,8 +234,8 @@ nodes:
- id: rabbit-dolphin-raspberry
type: github.com/actions/upload-artifact@v3.1.3
position:
x: 3250
y: 1180
x: 3810
y: 3080
inputs:
name: graph-runner-linux-x64
path: graph-runner-linux.tar
Expand All @@ -190,8 +244,8 @@ nodes:
- id: yellow-kangaroo-pineapple
type: run@v1
position:
x: 2830
y: 1060
x: 3280
y: 2450
inputs:
script: >-
GOOS=windows GOARCH=amd64 go build -ldflags "-X
Expand All @@ -202,8 +256,8 @@ nodes:
- id: blueberry-lemon-orange
type: github.com/actions/upload-artifact@v3.1.3
position:
x: 3250
y: 1480
x: 3810
y: 2330
inputs:
name: graph-runner-windows-x64
path: dist-windows/graph-runner-windows-x64.exe
Expand All @@ -223,8 +277,8 @@ nodes:
- id: giraffe-monkey-plum
type: run@v1
position:
x: 2830
y: 1390
x: 3280
y: 2780
inputs:
script: >-
GOOS=darwin GOARCH=arm64 go build -ldflags "-X
Expand All @@ -241,8 +295,8 @@ nodes:
- id: orange-watermelon-lion
type: github.com/actions/upload-artifact@v3.1.3
position:
x: 3250
y: 1790
x: 3810
y: 2780
inputs:
name: graph-runner-macos
path: graph-runner-macos.tar
Expand All @@ -251,8 +305,8 @@ nodes:
- id: blue-monkey-tiger
type: parallel-exec@v1
position:
x: 2530
y: 1100
x: 2940
y: 2480
outputs:
exec[0]: ''
exec[1]: ''
Expand Down Expand Up @@ -281,7 +335,7 @@ nodes:
- id: branch-v1-pink-purple-koala
type: branch@v1
position:
x: 2160
x: 2110
y: 1160
settings:
folded: false
Expand All @@ -303,17 +357,18 @@ nodes:
- id: parallel-exec-v1-cranberry-blueberry-orange
type: parallel-exec@v1
position:
x: 1800
y: 760
x: 2330
y: 1100
outputs:
exec[0]: ''
exec[1]: ''
exec[2]: ''
settings:
folded: false
- id: github-com-actions-upload-artifact-v3-1-3-purple-rabbit-brown
type: github.com/actions/upload-artifact@v3.1.3
position:
x: 2110
x: 2810
y: 800
inputs:
name: cover
Expand All @@ -323,8 +378,8 @@ nodes:
- id: string-fmt-v1-squirrel-strawberry-plum
type: string-fmt@v1
position:
x: 2810
y: 1730
x: 3260
y: 3420
inputs:
input[0]: null
fmt: graph-runner-linux-%v.tar
Expand All @@ -333,8 +388,8 @@ nodes:
- id: string-fmt-v1-giraffe-gray-plum
type: string-fmt@v1
position:
x: 2810
y: 1940
x: 3260
y: 3270
inputs:
input[0]: null
fmt: graph-runner-windows-x64-%v
Expand All @@ -343,8 +398,8 @@ nodes:
- id: string-fmt-v1-dolphin-monkey-grape
type: string-fmt@v1
position:
x: 2810
y: 2160
x: 3260
y: 3110
inputs:
input[0]: null
fmt: graph-runner-macos-%v.tar
Expand All @@ -353,12 +408,84 @@ nodes:
- id: env-get-v1-strawberry-banana-cranberry
type: env-get@v1
position:
x: 2480
y: 2050
x: 2920
y: 3320
inputs:
env: GITHUB_REF_NAME
settings:
folded: false
- id: github-com-docker-build-push-action-v5-1-0-brown-orange-banana
type: github.com/docker/build-push-action@v5.1.0
position:
x: 3960
y: 1090
inputs:
push: 'true'
context: .
settings:
folded: false
- id: string-fmt-v1-shark-orange-brown
type: string-fmt@v1
position:
x: 2830
y: 1700
inputs:
input[0]: ''
fmt: ghcr.io/%v:latest,ghcr.io/%v:%v
input[1]: null
input[2]: null
settings:
folded: false
- id: github-com-docker-login-action-v3-0-0-kiwi-giraffe-kiwi
type: github.com/docker/login-action@v3.0.0
position:
x: 2840
y: 1130
inputs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
settings:
folded: false
- id: parallel-exec-v1-raspberry-kangaroo-strawberry
type: parallel-exec@v1
position:
x: 1800
y: 760
outputs:
exec[0]: ''
exec[1]: ''
settings:
folded: false
- id: env-get-v1-gold-panda-coconut
type: env-get@v1
position:
x: 2380
y: 1760
inputs:
env: GITHUB_REPOSITORY
settings:
folded: false
- id: env-get-v1-penguin-pineapple-pear
type: env-get@v1
position:
x: 2380
y: 1890
inputs:
env: GITHUB_REF_NAME
settings:
folded: false
- id: github-com-docker-setup-buildx-action-v3-0-0-silver-koala-lemon
type: github.com/docker/setup-buildx-action@v3.0.0
position:
x: 3320
y: 1160
inputs:
platforms: linux/amd64,linux/arm64,linux/arm/v7
settings:
folded: false
registries:
- github.com/actions/upload-artifact@v3.1.3
- github.com/docker/build-push-action@v5.1.0
- github.com/docker/login-action@v3.0.0
- github.com/docker/setup-buildx-action@v3.0.0
description: ''
1 change: 0 additions & 1 deletion core/actiongraph.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ func loadNodes(ag *ActionGraph, nodesYaml map[any]interface{}) error {
}
}

node.SetNodeType(nodeType)
node.SetId(id)
ag.AddNode(id, node)
}
Expand Down
Loading