Created
August 19, 2022 15:28
-
-
Save napoler/6a7452b32cb7f320ade32a2576be7d8d to your computer and use it in GitHub Desktop.
This file contains 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: build | |
on: | |
push: | |
branches: | |
- 1.60 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Source | |
uses: actions/checkout@v1 | |
- name: Docker Login | |
run: docker login -u napoler -p ${{ secrets.DOCKERHUB_LOGIN_PASSWORD }} | |
- name: Build the Docker Image | |
run: | | |
docker build -t napoler/scrapyd:1.60 . | |
- name: Push the Docker Image | |
run: docker push napoler/scrapyd:1.60 | |
# - name: Docker Login github | |
# # run: docker login -u napoler -p ${{ secrets.GIB_TOKENS }} | |
# #run: docker login ghcr.io -u USERNAME -p {{ secrets.GIB_TOKENS }} | |
# run: echo ${{ secrets.GIB_TOKENS }} | docker login ghcr.io -u USERNAME --password-stdin | |
# - name: rename the Docker Image | |
# run: docker tag napoler/scrapyd:1.60 ghcr.io/napoler/scrapyd:1.60 | |
# - name: Push the Docker Image to github | |
# run: docker push ghcr.io/napoler/scrapyd:1.60 | |
- name: 'Build:dockerimage' | |
uses: docker/build-push-action@v2 | |
with: | |
registry: ghcr.io | |
username: "napoler" | |
password: ${{ secrets.GIB_TOKENS }} | |
repository: napoler/scrapyd | |
tags: 1.60 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment