Skip to content

Commit

Permalink
Build image and use fixed image in action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Taucher2003 committed Nov 17, 2023
1 parent 9b11249 commit 219e093
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/build_docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build Image

on:
push:
tags:
- '*'

permissions:
packages: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- run: docker build -t ghcr.io/taucher2003/gitlab-pipeline-action:${{ github.ref_name }} .
- run: echo ${{ secrets.GITHUB_TOKEN }} | docker login -u $ --password-stdin ghcr.io
name: Login to registry
- run: docker push ghcr.io/taucher2003/gitlab-pipeline-action:${{ github.ref_name }}
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ inputs:
author: 'Taucher2003'
runs:
using: 'docker'
image: 'Dockerfile'
image: 'ghcr.io/taucher2003/gitlab-pipeline-action:testing'

0 comments on commit 219e093

Please sign in to comment.