Skip to content

Commit

Permalink
Add docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Nov 14, 2023
1 parent 267e05f commit 87bfc43
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Docker Build

on:
push:

permissions:
packages: write

jobs:
docker-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build Image
run: docker build . -f Dockerfile -t ghcr.io/taucher2003/gitlab-pipeline-action:${{ github.sha }}
- name: Login to Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u $ --password-stdin ghcr.io
- name: Push image
run: |
docker push ghcr.io/taucher2003/gitlab-pipeline-action:${{ github.sha }}

0 comments on commit 87bfc43

Please sign in to comment.