Skip to content

Commit

Permalink
Versjonering
Browse files Browse the repository at this point in the history
  • Loading branch information
jvik committed Dec 22, 2024
1 parent 40b4dc8 commit a944d81
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Build and Push Docker Image

on:
push:
paths-ignore:
- "README.md"
branches:
- main
release:
types: [published]

jobs:
build:
Expand All @@ -17,12 +14,13 @@ jobs:
uses: actions/checkout@v2

- name: Build Docker Image
working-directory: ./
run: |
docker build -t jvik/elaway-gateway-api:latest .
run: docker build -t jvik/elaway-gateway-api:${{ github.event.release.tag_name }} .

- name: Log in to Docker Hub
run: docker login -u jvik -p ${{ secrets.DOCKERHUB_TOKEN }}
uses: docker/login-action@v2
with:
username: jvik
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Push Docker Image
run: docker push jvik/elaway-gateway-api:latest
run: docker push jvik/elaway-gateway-api:${{ github.event.release.tag_name }}

0 comments on commit a944d81

Please sign in to comment.