-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from wide-vsix/actions
Actions support container image build
- Loading branch information
Showing
5 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
.github/workflows/main.yaml → .github/workflows/binary_branch.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
name: latest origin/main | ||
name: branch binary | ||
|
||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- main | ||
|
||
jobs: | ||
build: | ||
|
2 changes: 1 addition & 1 deletion
2
.github/workflows/release.yaml → .github/workflows/binary_release.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: release tag | ||
name: release binary | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: branch container-image | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
docker-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: login ghcr | ||
id: login_docker | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: vsix-robot | ||
password: ${{ secrets.VSIX_ROBOT }} | ||
|
||
- name: push with branch name | ||
id: run_docker_push_with_branch_name | ||
run: > | ||
docker build -t ghcr.io/wide-vsix/linux-flow-exporter:branch-main . | ||
&& docker push ghcr.io/wide-vsix/linux-flow-exporter:branch-main | ||
env: | ||
BUILDKIT: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: release container-image | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
docker-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: clone repo | ||
uses: actions/checkout@v2 | ||
|
||
- name: login ghcr | ||
id: login_docker | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: vsix-robot | ||
password: ${{ secrets.VSIX_ROBOT }} | ||
|
||
- name: push with branch name | ||
id: run_docker_push_with_branch_name | ||
run: > | ||
docker build -t ghcr.io/wide-vsix/linux-flow-exporter:${{ github.ref }} . | ||
&& docker push ghcr.io/wide-vsix/linux-flow-exporter:${{ github.ref }} | ||
env: | ||
BUILDKIT: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters