This commit is contained in:
parent
ec7949fe21
commit
c863e64c8e
1 changed files with 9 additions and 7 deletions
|
|
@ -2,6 +2,9 @@ on:
|
|||
push:
|
||||
branches:
|
||||
- test/pipelines
|
||||
env:
|
||||
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||
DOCKER_CONFIG: /data/.docker
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
|
|
@ -15,19 +18,18 @@ jobs:
|
|||
pwd
|
||||
echo "Listing files:"
|
||||
ls -la
|
||||
# - name: Login to Docker Hub
|
||||
# run: |
|
||||
# echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||
|
||||
# - name: Build
|
||||
# run: docker build -t marshyon/yourimage:ci .
|
||||
# - name: Push
|
||||
# run: docker push marshyon/yourimage:ci
|
||||
|
||||
|
||||
|
||||
# - name: Build and Push
|
||||
# run: |
|
||||
# docker build -t user/myimage:latest .
|
||||
# docker push user/myimage:latest
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue