Skip to content

Commit

Permalink
first try?
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja authored Oct 26, 2023
1 parent 4523a1a commit cdac504
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
jobs:
docker:
name: Docker build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -18,16 +17,9 @@ jobs:
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
registry: "ghcr.io"
- name: Get Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}
tags: type=ref,event=tag
- name: Build Docker image
uses: docker/build-push-action@v2
with:
file: "./Dockerfile"
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
push: true
tags: ghcr.io/${{ github.repository }}:latest
push: true

0 comments on commit cdac504

Please sign in to comment.