lhandl triggered docker build #5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Container Build | |
run-name: ${{ github.actor }} triggered docker build | |
on: [push] | |
jobs: | |
docker-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build and Save Docker Image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: Dockerfile | |
tags: my-image:latest | |
push: false | |
- name: save image to tar | |
run: | | |
docker save -o ~/test.tar my-image:latest | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
docker images -a | |
- run: echo "Job's status is ${{ job.status }}." | |