Skip to content

Commit 2e21ca6

Browse files
committed
Add GitHub Actions workflow to build Docker build env
It's much faster to build and upload an image from a GitHub Actions runner than to build locally and then upload from a remote connection.
1 parent cc8649f commit 2e21ca6

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build Docker Build Env
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
dockerBuild:
9+
runs-on: ubuntu-latest
10+
env:
11+
buildPath: .circleci/
12+
imageName: ghcr.io/outpostuniverse/op2utility:1.2
13+
14+
steps:
15+
- uses: actions/checkout@v6
16+
17+
- name: Docker build
18+
run: docker build "${{ env.buildPath }}" --tag "${{ env.imageName }}"
19+
20+
- name: Docker login
21+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io --username "${{ github.repository_owner }}" --password-stdin
22+
23+
- name: Docker push
24+
run: docker push "${{ env.imageName }}"

0 commit comments

Comments
 (0)