docker login
This commit is contained in:
@@ -18,11 +18,14 @@ jobs:
|
||||
build:
|
||||
runs-on: cjyar-24
|
||||
steps:
|
||||
- name: docker login
|
||||
if: ${{ inputs.push == true }}
|
||||
run: echo ${{ secrets.DOCKER_TOKEN }} | docker login -u cjyar --password-stdin
|
||||
- uses: actions/checkout@v4
|
||||
- name: build
|
||||
run: docker build -t ${{ inputs.image_name }}:${{ github.run_number }} .
|
||||
- name: push
|
||||
if: ${{ inputs.push == true }}
|
||||
if: ${{ inputs.push == true }}
|
||||
run: |
|
||||
docker create --name run_${{ github.run_number }} ${{ inputs.image_name }}:${{ github.run_number }}
|
||||
docker export -o /tmp/image run_${{ github.run_number }}
|
||||
|
||||
Reference in New Issue
Block a user