summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Klausen <kristian@klausen.dk>2024-01-03 02:22:12 +0100
committerKristian Klausen <kristian@klausen.dk>2024-01-03 02:25:24 +0100
commit26d319f072705f4e7155e5903369ab7eec201979 (patch)
treef7aa3f3ab8d9d0d20b9bf13445d03460b29a7b80
parent3680caf7c43ce27c2c4669904e409eb0e54bab06 (diff)
Use the official Vagrant token environmental variable[1] for authentication
It will be stored as a CI/CD variable. [1] https://developer.hashicorp.com/vagrant/vagrant-cloud/users/authentication#authenticating-tools
-rw-r--r--.gitlab-ci.yml1
1 files changed, 0 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 566326e..a6f1ad5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -189,7 +189,6 @@ publish:
base="$(basename "${file}")"
curl -sSf --header "JOB-TOKEN: ${CI_JOB_TOKEN}" --upload-file "${file}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/images/v${BUILD_VERSION}/${base}"
done
- - vagrant cloud auth login --token "${VAGRANT_API_TOKEN}"
- vagrant cloud auth login --check
- vagrant cloud box show archlinux/archlinux
- vagrant cloud publish archlinux/archlinux "${BUILD_VERSION}" libvirt output/Arch-Linux-x86_64-libvirt-*.box --release -f