Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
northpowered authored Sep 6, 2022
1 parent 14469ce commit 2c9d8df
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker Image CI
name: Docker Image CI/CD

on:
push:
Expand All @@ -14,5 +14,14 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.CR_PAT }}
- name: Build and publish the Docker image
run: |
docker build . --file Dockerfile --tag simple-sla:latest
docker run ghcr.io/northpowered/simple-sla:latest
docker push ghcr.io/northpowered/simple-sla:latest

0 comments on commit 2c9d8df

Please sign in to comment.