Compare commits
5 Commits
ce3136c047
...
a50c8bdba7
| Author | SHA1 | Date | |
|---|---|---|---|
| a50c8bdba7 | |||
| 154e9039c3 | |||
| cca9457769 | |||
| b7df8c0cc3 | |||
| 439dc9ddef |
@@ -2,6 +2,9 @@ name: Gitea Actions Demo
|
||||
run-name: ${{ github.actor }} is building and pushing 🚀
|
||||
on: [push]
|
||||
|
||||
env:
|
||||
REGISTRY: git.chopark.home
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -13,14 +16,17 @@ jobs:
|
||||
# We use single quotes around the secret to prevent shell interpretation
|
||||
# and the VM IP to bypass the 'server' DNS issue.
|
||||
run: |
|
||||
echo '${{ secrets.GITEA_TOKEN }}' | docker login git.chopark.home:3000 --username ${{ github.actor }} --password-stdin
|
||||
echo '${{ secrets.REGISTRY_TOKEN }}' | \
|
||||
docker login ${{ env.REGISTRY }} \
|
||||
--username ${{ gitea.actor }} \
|
||||
--password-stdin
|
||||
|
||||
- name: Build and Push Docker Image
|
||||
run: |
|
||||
docker build -t git.chopark.home:3000/${{ github.repository }}:latest .
|
||||
docker push git.chopark.home:3000/${{ github.repository }}:latest
|
||||
docker build -t ${{ env.REGISTRY }}/${{ gitea.repository }}:latest .
|
||||
docker push ${{ env.REGISTRY }}/${{ gitea.repository }}:latest
|
||||
|
||||
- name: List files in the repository
|
||||
run: ls ${{ github.workspace }}
|
||||
|
||||
- run: echo "🍏 Build and Push status is ${{ job.status }}."
|
||||
- run: echo "🍏 Build and Push status is ${{ job.status }}."
|
||||
|
||||
Reference in New Issue
Block a user