This commit is contained in:
parent
ec7949fe21
commit
c863e64c8e
1 changed files with 9 additions and 7 deletions
|
|
@ -2,6 +2,9 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- test/pipelines
|
- test/pipelines
|
||||||
|
env:
|
||||||
|
DOCKER_HOST: tcp://docker-in-docker:2375
|
||||||
|
DOCKER_CONFIG: /data/.docker
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
|
@ -15,19 +18,18 @@ jobs:
|
||||||
pwd
|
pwd
|
||||||
echo "Listing files:"
|
echo "Listing files:"
|
||||||
ls -la
|
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
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
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