Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 6s
test local ip to push without uploading limits
28 lines
871 B
YAML
28 lines
871 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Log into Gitea Container Registry
|
|
run: |
|
|
echo "${{ secrets.DOCKER_PASSWORD }}" | docker login ${{ vars.LOCAL_INSTANCE_IP }} -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
|
|
|
- name: Build Docker image
|
|
run: |
|
|
docker pull hello-world
|
|
docker tag hello-world git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest
|
|
#docker build -t git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest -f .devcontainer/Dockerfile .
|
|
|
|
- name: Push Docker image
|
|
run: |
|
|
docker push git.silklaasboer.nl/${{ secrets.DOCKER_USERNAME }}/devcontainer:latest |