test action
This commit is contained in:
18
.github/workflows/docker-image.yml
vendored
18
.github/workflows/docker-image.yml
vendored
@@ -13,6 +13,18 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Build the Docker image
|
||||
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v1
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.GITHUB_REGISTRY_TOKEN }}
|
||||
- name: Build and Push Docker Image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true # Will only build if this is not here
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository }}:${{ github.ref }}
|
||||
ghcr.io/${{ github.repository }}:latest
|
||||
|
||||
Reference in New Issue
Block a user