Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Commit 34952cf

Browse files
committed
Use docker action for all builds
1 parent 1a0f1f2 commit 34952cf

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,20 @@ jobs:
99
- uses: actions/setup-go@v2-beta
1010
with:
1111
go-version: "1.13"
12-
- name: "List go version"
13-
run: "go version"
14-
- name: "Run Lint"
12+
- name: "Lint Operator Go Code"
1513
run: |
1614
cd operator/
1715
go fmt ./...
1816
go vet ./...
1917
- name: "Build'n Push Operator"
20-
uses: docker://j12934/one-click-docker@sha256:c0c3c90aa2fe65c0ffad0cf892aec9ea4dcc4731c1b2ccc0f3d4c8eacc4fb917
21-
env:
22-
DOCKER_IMAGE_NAME: operator
23-
DOCKER_REGISTRY_URL: docker.pkg.github.com
24-
DOCKER_NAMESPACE: j12934/securecodebox
25-
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
26-
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
18+
uses: docker/build-push-action@v1
2719
with:
28-
args: ./operator/
20+
username: ${{ github.actor }}
21+
password: ${{ github.token }}
22+
repository: j12934/securecodebox/operator
23+
tag_with_ref: true
24+
registry: docker.pkg.github.com
25+
path: ./operator/
2926
- uses: actions/delete-package-versions@v1
3027
name: "Delete oldest operator image tag"
3128
with:
@@ -47,17 +44,12 @@ jobs:
4744
- uses: docker/build-push-action@v1
4845
name: "Build & Push Lurcher Image"
4946
with:
50-
username: ${{ secrets.DOCKER_USERNAME }}
51-
password: ${{ secrets.DOCKER_PASSWORD }}
47+
username: ${{ github.actor }}
48+
password: ${{ github.token }}
5249
repository: j12934/securecodebox/lurcher
5350
tag_with_ref: true
5451
registry: docker.pkg.github.com
5552
path: ./lurcher/
56-
- uses: actions/delete-package-versions@v1
57-
name: "Delete oldest lurcher image tag"
58-
with:
59-
package-name: lurcher
60-
num-old-versions-to-delete: 1
6153
integrations:
6254
name: "Node Unit Tests"
6355
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)