Compare commits

..

No commits in common. "8a73b135c0922e28ff9f0aea329741b8ef543f16" and "aa4fd2a95496f923412bf2ab3aa481a1af5abf45" have entirely different histories.

5 changed files with 0 additions and 66 deletions

View File

@ -1,29 +0,0 @@
name: Deploy to Server (Docker)
on:
push:
branches:
- main
- train_go
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker image
run: docker build -t registry.gocommunity.ru:5000/my-app-image .
- name: List Docker image
run: docker images
- name: Login to registry hub.
run: docker login -u podman -p PodMan25! registry.gocommunity.ru:5000
- name: Push Docker image to registry
run: docker push registry.gocommunity.ru:5000/my-app-image:latest
- name: Push Docker image to registry
run: echo "Happy New Year!!"

View File

@ -1,23 +0,0 @@
package main
import (
"fmt"
time "time"
cycle "train_golang/pkg"
)
func add(a, b int) {
fmt.Println("Sum = ", a+b)
}
func sub(a, b int) {
fmt.Println("Sub = ", a-b)
}
func main() {
go add(5, 6)
go sub(7, 9)
cycle.SimpleForCycle()
time.Sleep(1 * time.Second)
}

View File

@ -1,3 +0,0 @@
module train_golang
go 1.23.6

View File

@ -1,11 +0,0 @@
package cycle
import (
fmt "fmt"
)
func SimpleForCycle() {
for i := 0; i < 100; i++ {
fmt.Println("Iter: ", i)
}
}

0
go/task.go Normal file
View File