This commit is contained in:
parent
ec1f333ab8
commit
6fd0ec83e3
1 changed files with 9 additions and 3 deletions
|
|
@ -14,13 +14,19 @@ jobs:
|
|||
build:
|
||||
runs-on: docker
|
||||
container:
|
||||
image: docker:24-cli
|
||||
image: node:22 # Optionally install Docker CLI in a step
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install Docker CLI
|
||||
run: apt-get update && apt-get install -y docker.io
|
||||
|
||||
- name: Docker info
|
||||
run: docker info
|
||||
|
||||
- name: Log in to container registry
|
||||
- name: Log in to registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \
|
||||
-u "${{ secrets.REGISTRY_USER }}" \
|
||||
|
|
@ -32,7 +38,7 @@ jobs:
|
|||
docker build -t "$CONTAINER_IMAGE" .
|
||||
docker tag "$CONTAINER_IMAGE" "${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
|
||||
- name: Push Docker images
|
||||
- name: Push Docker image
|
||||
run: |
|
||||
docker push "$CONTAINER_IMAGE"
|
||||
docker push "${{ secrets.REGISTRY_IMAGE }}:latest"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue