Skip to content

Commit 5518c3d

Browse files
authored
Merge pull request #446 from OutpostUniverse/addDockerBuildWorkflow
Add GitHub Actions workflow to build Docker build env
2 parents cc8649f + 22f4f78 commit 5518c3d

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

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

0 commit comments

Comments
 (0)